undefined symbol problem with Xcode linker

Discussion in 'Mac Programming' started by Hinchy, Nov 13, 2009.

  1. Hinchy macrumors newbie

    Nov 13, 2009
    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
  2. gnasher729 macrumors P6


    Nov 25, 2005
    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? )

Share This Page