gcov cannot find $UNIX2003 symbols in Xcode 3
gcov cannot find $UNIX2003 symbols in Xcode 3
- Subject: gcov cannot find $UNIX2003 symbols in Xcode 3
- From: Aaron Montgomery <email@hidden>
- Date: Mon, 29 Oct 2007 07:13:01 -0700
Hopefully this isn't sitting in some FAQ somewhere. Just upgraded to
Xcode 3.0 with a small Carbon project that uses Unit Tests (CPTest)
and gcov. I am now getting a linker error. Looks like the gcov library
is failing to find some functions (link line and errors below).
I don't remember if I've tried compiling this since moving to an Intel
processor, so perhaps the Xcode 3 is a red herring and this is really
an i386 issue.
Any suggestions?
Aaron
Ld /Users/eeyore/Developer/SuperAdd/build/Debug/SuperAdd.app/
Contents/MacOS/SuperAdd normal i386
cd /Users/eeyore/Developer/SuperAdd
/Developer/usr/bin/g++-4.0 -o /Users/eeyore/Developer/SuperAdd/
build/Debug/SuperAdd.app/Contents/MacOS/SuperAdd -L/Users/eeyore/
Developer/SuperAdd/build/Debug -F/Users/eeyore/Developer/SuperAdd/
build/Debug -filelist /Users/eeyore/Developer/SuperAdd/build/
SuperAdd.build/Debug/SuperAdd.build/Objects-normal/i386/
SuperAdd.LinkFileList -framework Carbon -arch i386 -mmacosx-version-
min=10.4 -lgcov -isysroot /Developer/SDKs/MacOSX10.4u.sdk
Undefined symbols:
"_fcntl$UNIX2003", referenced from:
___gcov_open in libgcov.a(_gcov.o)
"_close$UNIX2003", referenced from:
___gcov_open in libgcov.a(_gcov.o)
"_open$UNIX2003", referenced from:
___gcov_open in libgcov.a(_gcov.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