View Full Version : xcode help
Jul 8, 2006, 05:15 PM
i am trying to compile a program. i am getting this error and i have no idea what it means. Undefined symbols: _jpgalleg_init _load_jpg
Jul 8, 2006, 06:09 PM
It means you need to link against libjpeg. Install it using either Fink or DarwinPorts and then in XCode, add libjpeg to the XCode project.
Jul 8, 2006, 06:24 PM
how do i link a library? oh and i think it is talking about jpgalleg since its required for the program
Jul 8, 2006, 06:54 PM
Yeah, I was wrong about libjpeg (that'll teach me to only look at one of the missing symbols...) To link against a library, you need to add the library, which will have an extension of either .a or .dylib to the XCode project. XCode should take care of the rest.
Is this program that you're compiling designed for generic *nix operating systems? If so, you might want to follow the standard configure / make procedure.
Jul 8, 2006, 07:16 PM
ok thx. now how do i get to a file thats in /usr/bin??
Jul 8, 2006, 07:54 PM
Command-shift-G in either the add dialog or the Finder, then type in "/usr/bin".
Note however that bin directories should only have applications, and libraries should have been installed into a "lib" directory, e.g. /usr/lib or /usr/local/lib.
Jul 8, 2006, 08:12 PM
thank you now it it compiling.