I'm adding Zxing 1.7(Qr scanner) to my projects.
I upgraded Mac OS X to Lion and xcode4.2, iOS5.0.
Problem is that when I run the project, I always saw "iostream file not found".
I run the scanTest(Qr scanner test sample code prvided from Zxing team) ,but it works well.
So, I compare my projects and scanTest, but I can't find any difference.
What can I do to solve this problem?
You can only include iostream
in C++ or ObjectiveC++ files. If your case is the latter, the file suffix needs to be .mm
. So, for example, if your controller class imports QRCodeReader.h
and is named MyController.m
, it should be renamed MyController.m
→ MyController.mm
.