linking error in zxing while trying to use it in my project iphone

Posted by Usman on Stack Overflow See other posts from Stack Overflow or by Usman
Published on 2010-03-12T10:33:07Z Indexed on 2010/03/12 10:37 UTC
Read the original article Hit count: 654

Filed under:
|

Hi, In My Project i need bar-code scanning. so i use zxing library but i m heaving some linking error and its getting me crazy. error is

 Undefined symbols:
  "zxing::BinaryBitmap::BinaryBitmap(zxing::Ref<zxing::Binarizer>)", referenced from:
      -[Decoder decode:] in Decoder.o
  "zxing::LuminanceSource::LuminanceSource()", referenced from:
      GrayBytesMonochromeBitmapSource::GrayBytesMonochromeBitmapSource(unsigned char const*, int, int, int)in GrayBytesMonochromeBitmapSource.o
  "zxing::qrcode::QRCodeReader::decode(zxing::Ref<zxing::BinaryBitmap>)", referenced from:
      -[Decoder decode:] in Decoder.o
  "zxing::LuminanceSource::~LuminanceSource()", referenced from:
      GrayBytesMonochromeBitmapSource::~GrayBytesMonochromeBitmapSource()in GrayBytesMonochromeBitmapSource.o
      GrayBytesMonochromeBitmapSource::~GrayBytesMonochromeBitmapSource()in GrayBytesMonochromeBitmapSource.o
  "zxing::ReaderException::~ReaderException()", referenced from:
      -[Decoder decode:] in Decoder.o
      -[Decoder decode:] in Decoder.o
  "zxing::String::getText()", referenced from:
      -[Decoder decode:] in Decoder.o
  "typeinfo for zxing::LuminanceSource", referenced from:
      typeinfo for GrayBytesMonochromeBitmapSourcein GrayBytesMonochromeBitmapSource.o
  "vtable for zxing::IllegalArgumentException", referenced from:
      __ZTVN5zxing24IllegalArgumentExceptionE$non_lazy_ptr in Decoder.o
  "typeinfo for zxing::ReaderException", referenced from:
      GCC_except_table1 in Decoder.o
  "vtable for zxing::Exception", referenced from:
      __ZTVN5zxing9ExceptionE$non_lazy_ptr in Decoder.o
  "zxing::LuminanceSource::copyMatrix()", referenced from:
      vtable for GrayBytesMonochromeBitmapSourcein GrayBytesMonochromeBitmapSource.o
  "zxing::Result::getText()", referenced from:
      -[Decoder decode:] in Decoder.o
  "zxing::GlobalHistogramBinarizer::GlobalHistogramBinarizer(zxing::Ref<zxing::LuminanceSource>)", referenced from:
      -[Decoder decode:] in Decoder.o
  "zxing::IllegalArgumentException::~IllegalArgumentException()", referenced from:
      -[Decoder decode:] in Decoder.o
      -[Decoder decode:] in Decoder.o
  "zxing::Result::getResultPoints()", referenced from:
      -[Decoder decode:] in Decoder.o
  "typeinfo for zxing::IllegalArgumentException", referenced from:
      GCC_except_table1 in Decoder.o
  "zxing::Exception::what() const", referenced from:
      -[Decoder decode:] in Decoder.o
      -[Decoder decode:] in Decoder.o
  "vtable for zxing::ReaderException", referenced from:
      __ZTVN5zxing15ReaderExceptionE$non_lazy_ptr in Decoder.o
  "zxing::qrcode::QRCodeReader::QRCodeReader()", referenced from:
      -[Decoder decode:] in Decoder.o
  "zxing::qrcode::QRCodeReader::~QRCodeReader()", referenced from:
      -[Decoder decode:] in Decoder.o
      -[Decoder decode:] in Decoder.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
       "zxing::BinaryBitmap::BinaryBitmap(zxing::Ref<zxing::Binarizer>)", referenced from:
           -[Decoder decode:] in Decoder.o
       "zxing::LuminanceSource::LuminanceSource()", referenced from:
           GrayBytesMonochromeBitmapSource::GrayBytesMonochromeBitmapSource(unsigned char const*, int, int, int)in GrayBytesMonochromeBitmapSource.o
       "zxing::qrcode::QRCodeReader::decode(zxing::Ref<zxing::BinaryBitmap>)", referenced from:
           -[Decoder decode:] in Decoder.o
       "zxing::LuminanceSource::~LuminanceSource()", referenced from:
           GrayBytesMonochromeBitmapSource::~GrayBytesMonochromeBitmapSource()in GrayBytesMonochromeBitmapSource.o
           GrayBytesMonochromeBitmapSource::~GrayBytesMonochromeBitmapSource()in GrayBytesMonochromeBitmapSource.o
       "zxing::ReaderException::~ReaderException()", referenced from:
           -[Decoder decode:] in Decoder.o
           -[Decoder decode:] in Decoder.o
       "zxing::String::getText()", referenced from:
           -[Decoder decode:] in Decoder.o
       "typeinfo for zxing::LuminanceSource", referenced from:
           typeinfo for GrayBytesMonochromeBitmapSourcein GrayBytesMonochromeBitmapSource.o
       "vtable for zxing::IllegalArgumentException", referenced from:
           __ZTVN5zxing24IllegalArgumentExceptionE$non_lazy_ptr in Decoder.o
       "typeinfo for zxing::ReaderException", referenced from:
           GCC_except_table1 in Decoder.o
       "vtable for zxing::Exception", referenced from:
           __ZTVN5zxing9ExceptionE$non_lazy_ptr in Decoder.o
       "zxing::LuminanceSource::copyMatrix()", referenced from:
           vtable for GrayBytesMonochromeBitmapSourcein GrayBytesMonochromeBitmapSource.o
       "zxing::Result::getText()", referenced from:
           -[Decoder decode:] in Decoder.o
       "zxing::GlobalHistogramBinarizer::GlobalHistogramBinarizer(zxing::Ref<zxing::LuminanceSource>)", referenced from:
           -[Decoder decode:] in Decoder.o
       "zxing::IllegalArgumentException::~IllegalArgumentException()", referenced from:
           -[Decoder decode:] in Decoder.o
           -[Decoder decode:] in Decoder.o
       "zxing::Result::getResultPoints()", referenced from:
           -[Decoder decode:] in Decoder.o
       "typeinfo for zxing::IllegalArgumentException", referenced from:
           GCC_except_table1 in Decoder.o
       "zxing::Exception::what() const", referenced from:
           -[Decoder decode:] in Decoder.o
           -[Decoder decode:] in Decoder.o
       "vtable for zxing::ReaderException", referenced from:
           __ZTVN5zxing15ReaderExceptionE$non_lazy_ptr in Decoder.o
       "zxing::qrcode::QRCodeReader::QRCodeReader()", referenced from:
           -[Decoder decode:] in Decoder.o
       "zxing::qrcode::QRCodeReader::~QRCodeReader()", referenced from:
           -[Decoder decode:] in Decoder.o
           -[Decoder decode:] in Decoder.o
     ld: symbol(s) not found
     collect2: ld returned 1 exit status

i m trying to resolve this for last two day. i think i m missing some library or some file. can any one point me out what i m doing wrong.

Usman

© Stack Overflow or respective owner

Related posts about zxing

Related posts about iphone