coder-free / iphone-exif

Automatically exported from code.google.com/p/iphone-exif
0 stars 0 forks source link

Binary 0.8 requires gLogging variable declared in order to link correctly #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Include the binary library and header files
2. Try and build the project.

What is the expected output? What do you see instead?
Expected build successful.

Actual output:

Undefined symbols:
  "_gLogging", referenced from:
      _gLogging$non_lazy_ptr in libiphone-exif.a(EXFJpeg.o)
      _gLogging$non_lazy_ptr in libiphone-exif.a(EXFJFIF.o)
      _gLogging$non_lazy_ptr in libiphone-exif.a(EXFMetaData.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
          "_gLogging", referenced from:
              _gLogging$non_lazy_ptr in libiphone-exif.a(EXFJpeg.o)
              _gLogging$non_lazy_ptr in libiphone-exif.a(EXFJFIF.o)
              _gLogging$non_lazy_ptr in libiphone-exif.a(EXFMetaData.o)
        ld: symbol(s) not found
        collect2: ld returned 1 exit status
Build failed (1 error)

Workaround: include 

BOOL gLogging = FALSE;

variable definition in AppDelegate .m file.

Original issue reported on code.google.com by steview....@googlemail.com on 25 Jun 2008 at 6:20

GoogleCodeExporter commented 9 years ago

Original comment by steview....@googlemail.com on 25 Jun 2008 at 6:21

GoogleCodeExporter commented 9 years ago
I am facing same problem With SDK 3.x
any one manage to solve this?

Original comment by khfcki...@gmail.com on 6 Dec 2009 at 8:33

GoogleCodeExporter commented 9 years ago
Hi.
I had the sme problem and revolved it putting the "BOOL gLogging = FALSE;" non 
in appDelegate.m but in.h.

I hope to help you.

Original comment by greta.ge...@gmail.com on 18 Jan 2010 at 2:24

GoogleCodeExporter commented 9 years ago
Where in the appDelegate.m (or .h)?  It's not working for me no matter where I 
put it.

Original comment by sha...@gmail.com on 5 Mar 2010 at 5:46

GoogleCodeExporter commented 9 years ago
Add this file to you project.

Original comment by aoxuemob...@gmail.com on 23 Apr 2011 at 7:17

Attachments:

GoogleCodeExporter commented 9 years ago
Undefined symbols for architecture armv6:
  "_gLogging", referenced from:
      -[EXFJFIF parseJfif:] in libiphone-exif.a(libiphone-exif.a-armv6-master.o)
      -[EXFJpeg processComment] in libiphone-exif.a(libiphone-exif.a-armv6-master.o)
      -[EXFJpeg scanImageData:] in libiphone-exif.a(libiphone-exif.a-armv6-master.o)
      -[EXFJpeg populateImageData:] in libiphone-exif.a(libiphone-exif.a-armv6-master.o)
      -[EXFMetaData addTagValue:forKey:] in libiphone-exif.a(libiphone-exif.a-armv6-master.o)
      -[EXFMetaData removeTagValue:] in libiphone-exif.a(libiphone-exif.a-armv6-master.o)
      -[EXFMetaData assignData::::] in libiphone-exif.a(libiphone-exif.a-armv6-master.o)
      ...
ld: symbol(s) not found for architecture armv6
collect2: ld returned 1 exit status

I'm using 0.9 with Xcode 4.1 and I can't build

Original comment by jihost...@gmail.com on 9 Sep 2011 at 6:01