Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Jul 20, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 25 Jun 2008 at 6:20

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 25 Jun 2008 at 6:21

  • Changed title: Binary 0.8 requires gLogging variable declared in order to link correctly

@GoogleCodeExporter
Copy link
Author

I am facing same problem With SDK 3.x
any one manage to solve this?

Original comment by [email protected] on 6 Dec 2009 at 8:33

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 18 Jan 2010 at 2:24

@GoogleCodeExporter
Copy link
Author

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

Original comment by [email protected] on 5 Mar 2010 at 5:46

@GoogleCodeExporter
Copy link
Author

Add this file to you project.

Original comment by [email protected] on 23 Apr 2011 at 7:17

Attachments:

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 9 Sep 2011 at 6:01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant