Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 8, 2006, 05:15 PM   #1
cdsboy
macrumors newbie
 
Join Date: Jul 2006
xcode help

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
cdsboy is offline   0 Reply With Quote
Old Jul 8, 2006, 06:09 PM   #2
Yuvi
macrumors member
 
Join Date: Jun 2006
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.
Yuvi is offline   0 Reply With Quote
Old Jul 8, 2006, 06:24 PM   #3
cdsboy
Thread Starter
macrumors newbie
 
Join Date: Jul 2006
how do i link a library? oh and i think it is talking about jpgalleg since its required for the program
cdsboy is offline   0 Reply With Quote
Old Jul 8, 2006, 06:54 PM   #4
Yuvi
macrumors member
 
Join Date: Jun 2006
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.
Yuvi is offline   0 Reply With Quote
Old Jul 8, 2006, 07:16 PM   #5
cdsboy
Thread Starter
macrumors newbie
 
Join Date: Jul 2006
ok thx. now how do i get to a file thats in /usr/bin??
cdsboy is offline   0 Reply With Quote
Old Jul 8, 2006, 07:54 PM   #6
Yuvi
macrumors member
 
Join Date: Jun 2006
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.
Yuvi is offline   0 Reply With Quote
Old Jul 8, 2006, 08:12 PM   #7
cdsboy
Thread Starter
macrumors newbie
 
Join Date: Jul 2006
thank you now it it compiling.
cdsboy is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
The App Store app thinks Xcode is installed, but I deleted Xcode. moonman239 Mac Applications and Mac App Store 3 May 6, 2014 05:53 PM
Moving from xcode 3.2 to xcode 4.5.2 compilation error for 'abs' macro in stdlib.h hrishidev Mac Programming 7 Jun 2, 2013 10:36 AM
Xcode 4.5 iNeedAnsurs iPhone 0 Jan 25, 2013 02:49 PM
Xcode 3 vs Xcode 4 when dealing with Objective-C timebourne Mac Programming 8 Sep 23, 2012 05:36 PM
XCode 4.4.1 to Xcode 4.5 in Mountain Lion VinegarTasters OS X 10.8 Mountain Lion 2 Sep 19, 2012 08:55 PM

Forum Jump

All times are GMT -5. The time now is 09:03 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC