Note that there are some explanatory texts on larger screens.

plurals
  1. POUndefined symbols while including Zxing to Xcode 4.3 + Obj-C
    text
    copied!<p>I am facing some problem while including ZXingWidget to my previous iOS project. </p> <p>It is a project which I started earlier using XCode4.3+ARC for iOS. For this project I need to include ZXing to scan. </p> <p>I had followed the README provided.</p> <ol> <li>Copy zxing into project root, add ZXingWidget.xcodeproj project</li> <li>Adding link libZXingWidget.a in build phases </li> <li>Added ZXingWidget to target dependencies</li> <li>Header Search Paths - recursive $(SRCROOT)/zxing-read-only/iphone/ZXingWidget/Classes</li> <li>Header Search Paths - non-recursive $(SRCROOT)/zxing-read-only/cpp/core/src</li> <li>Import all the required iOS frameworks.</li> </ol> <p>Things to note:</p> <ul> <li>ZXing compiled and run properly on iphone simulator</li> <li>I am getting about 66 errors about undefined symbols. (example below)</li> <li>Zxing code is obtained from SVN (I also tried the zip download, same but 64 errors)</li> </ul> <p>But I could not import any file directly from my code (#import not working).</p> <p>I also tried this <a href="https://stackoverflow.com/questions/8893983/xcode4-zxing-undefined-symbols-for-architecture-i386?rq=1">solution</a> with no luck.</p> <p>Any other possibilities that I am missing?</p> <p>Any help is appreciated!</p> <p>Some error output I am getting now.</p> <pre><code>Undefined symbols for architecture i386: "std::ios_base::Init::Init()", referenced from: ___cxx_global_var_init in libZXingWidget.a(Binarizer.o) ___cxx_global_var_init in libZXingWidget.a(BinaryBitmap.o) ___cxx_global_var_init in libZXingWidget.a(Array.o) ___cxx_global_var_init in libZXingWidget.a(BitArray.o) ___cxx_global_var_init in libZXingWidget.a(BitMatrix.o) ___cxx_global_var_init in libZXingWidget.a(BitSource.o) ___cxx_global_var_init in libZXingWidget.a(Counted.o) ... "std::terminate()", referenced from: zxing::Binarizer::Binarizer(zxing::Ref&lt;zxing::LuminanceSource&gt;) in libZXingWidget.a(Binarizer.o) zxing::Binarizer::~Binarizer() in libZXingWidget.a(Binarizer.o) zxing::BinaryBitmap::BinaryBitmap(zxing::Ref&lt;zxing::Binarizer&gt;) in libZXingWidget.a(BinaryBitmap.o) zxing::BinaryBitmap::~BinaryBitmap() in libZXingWidget.a(BinaryBitmap.o) zxing::BinaryBitmap::getBlackRow(int, zxing::Ref&lt;zxing::BitArray&gt;) in libZXingWidget.a(BinaryBitmap.o) zxing::BinaryBitmap::getWidth() const in libZXingWidget.a(BinaryBitmap.o) zxing::BinaryBitmap::getHeight() const in libZXingWidget.a(BinaryBitmap.o) ... "operator delete(void*)", referenced from: zxing::Binarizer::~Binarizer() in libZXingWidget.a(Binarizer.o) zxing::Counted::~Counted() in libZXingWidget.a(Binarizer.o) zxing::BinaryBitmap::~BinaryBitmap() in libZXingWidget.a(BinaryBitmap.o) zxing::BinaryBitmap::crop(int, int, int, int) in libZXingWidget.a(BinaryBitmap.o) zxing::BinaryBitmap::rotateCounterClockwise() in libZXingWidget.a(BinaryBitmap.o) zxing::Counted::~Counted() in libZXingWidget.a(BinaryBitmap.o) zxing::BitArray::~BitArray() in libZXingWidget.a(BitArray.o) ... "___cxa_allocate_exception", referenced from: zxing::Counted::release() in libZXingWidget.a(Binarizer.o) zxing::Counted::release() in libZXingWidget.a(BinaryBitmap.o) zxing::BitArray::setRange(int, int) in libZXingWidget.a(BitArray.o) zxing::BitArray::isRange(unsigned long, unsigned long, bool) in libZXingWidget.a(BitArray.o) zxing::BitMatrix::setRegion(unsigned long, unsigned long, unsigned long, unsigned long) in libZXingWidget.a(BitMatrix.o) zxing::Counted::release() in libZXingWidget.a(BitMatrix.o) zxing::BitSource::readBits(int) in libZXingWidget.a(BitSource.o) ... </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload