Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Hinchy

macrumors newbie
Original poster
Nov 13, 2009
1
0
I am attempting to compile a C++ project using Xcode 3.2.1 under OS X 10.6.2. It is giving me 16 "undefined symbol" errors for functions that I am absolutely sure I have correctly defined. These errors do not happen when compiling under Code::Blocks for Windows or Linux. Is there anything the SDK introduces on the Mac side that may be interfering?

I do get a warning, but it doesn't seem to have anything to do with things, as the warning shows up under Windows and Linux as well, where it compiles fine.

A link to my errors: http://i36.tinypic.com/ibjha1.png
 
Well, there are two possibilities: Either there is a problem with the XCode linker, and you are the very first one who found it (and remember that all of Apple's software is written with XCode), or you made some mistake.

Are the source files for the missing methods part of your XCode project? Are they actually compiled? (Easy check: Add a line "#error" just in front of one of the methods. Do you get a compiler error? )
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.