• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
More on ignored compile/link flags
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

More on ignored compile/link flags


  • Subject: More on ignored compile/link flags
  • From: Andrew Hannon <email@hidden>
  • Date: Sun, 3 Jul 2005 15:46:58 -0400


So, I was unable to solver the header problem, so I prepended "../" to all of the appropriate #include's... ugh...


Anyways, I was still having a problem linking, though it turned out to be with a couple of the libs I was using (thanks for the tip on otool). However, after trying a library I knew existed and was working, tried passing -ltiff in the "Other Linker Flags" option (with /usr/local/lib in the lib search path). No luck -- XCode threw errors about undefined functions _TIFFClose, etc... I then took the actual command line used by excode:

/usr/bin/g++-4.0 -o /Users/dage/Documents/antifreeze/SDLPong/build/ Development/SDLPong.app/Contents/MacOS/SDLPong "-L/Users/dage/ Documents/antifreeze/SDLPong/build/Development" "-F/Users/dage/ Documents/antifreeze/SDLPong/build/Development" "-F/Library/ Frameworks" -filelist /Users/dage/Documents/antifreeze/SDLPong/build/ SDLPong.build/Development/SDLPong.build/Objects-normal/LinkFileList "-arch" "ppc" "-prebind" "-Wl,-no_arch_warnings" "-framework" "SDL" "-framework" "Cocoa" "-framework" "OpenGL" "-framework" "GLUT"

and appended:

-L/usr/local/lib/ -ltiff

to the end of it. Lo and behold, aside from a warning about prebinding, the code compiled and ran! Well, I am completely dumbfounded as to what is going on with XCode 2.1. It seems like it is ignoring a good number of user flags. Can anybody verify this claim? Surely, there must be many people out there linking to libraries, no?

Thanks in advance,

Andrew


P.S. Yes, you have read that command line correctly -- I am testing SDL by writing Pong in it... _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Prev by Date: Re: Xcode 2.1 debugger hanging at breakpoint
  • Next by Date: Re: Shark problem: can't see source code
  • Previous by thread: Re: Some quick questions
  • Next by thread: Re: XCode 2.1 header paths, source trees, and quotes
  • Index(es):
    • Date
    • Thread