Curious linker errors
Curious linker errors
- Subject: Curious linker errors
- From: Issac Trotts <email@hidden>
- Date: Mon, 30 Mar 2009 21:24:26 -0700
Hi Xcode users,
I'm having some trouble with linking, not sure why. When I try to call
C functions from Objective C, the linker says the symbols for the
called functions are undefined. I suspect this has to do with having
previous versions of the C files with .cpp or .mm extensions, but
can't say for sure.
I had a similar problem with linking of global variables (serves me
right for using globals I guess). That problem went away when I made
new files globals.h and globals.m, and moved the globals into them. I
have no idea why that worked.
Issac
Building target “Zoominous” of project “Zoominous” with configuration “Debug”
Checking Dependencies
Ld /Users/issactrotts/xcode_build_products/Debug/Zoominous.app/Contents/MacOS/Zoominous
normal i386
cd /Users/issactrotts/Documents/Zoominous
setenv MACOSX_DEPLOYMENT_TARGET 10.5
/Developer/usr/bin/gcc-4.0 -arch i386 -isysroot
/Developer/SDKs/MacOSX10.5.sdk
-L/Users/issactrotts/xcode_build_products/Debug
-L/usr/local/mysql-5.1.32-osx10.5-x86/lib
-F/Users/issactrotts/xcode_build_products/Debug -filelist
/Users/issactrotts/xcode_build_products/Zoominous.build/Debug/Zoominous.build/Objects-normal/i386/Zoominous.LinkFileList
-mmacosx-version-min=10.5 -framework Cocoa -lmysqlclient -framework
OpenGL -framework GLUT -o
/Users/issactrotts/xcode_build_products/Debug/Zoominous.app/Contents/MacOS/Zoominous
Undefined symbols:
"_dataset_bounds_microns", referenced from:
-[GlView reset_camera] in GlView.o
"_load_datasets_list", referenced from:
-[GlView prepare] in GlView.o
"_stackvis_load_dataset", referenced from:
_load_random_dataset in GlView.o
"_trackball", referenced from:
-[GlView reset_camera] in GlView.o
"_init_sql", referenced from:
-[GlView prepare] in GlView.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
_______________________________________________
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