Solved: "C" Functions Won't Link Between .mm Files
Solved: "C" Functions Won't Link Between .mm Files
- Subject: Solved: "C" Functions Won't Link Between .mm Files
- From: Jerry Krinock <email@hidden>
- Date: Tue, 13 Dec 2005 21:21:42 -0800
- Thread-topic: Solved: "C" Functions Won't Link Between .mm Files
If I linked my Cocoa application with Build Configuration "Debug", it linked
with no errors but upon running the app quit immediately with this console
message:
ZeroLink: unknown symbol
'__Z48ParseArrayOfCommandLineArgumentsForLetterCommandP7NSArrayP8NSString'
If instead I linked it with Build Configuration "Deployment", I got a bunch
of "Undefined symbol" errors during linking. It looked like I got an error
for each plain-old C function such as "void MyFunction(int someArg)" which
was called in one file but defined in another file.
I discovered hat the problem was only occurring if one of the files had the
.mm extension instead of .m. (This project was born as Objective-C++).
Removing .mm files, changing all .mm extentions to .m, and re-adding the
files fixed the problem.
Is this a bug, a feature, or another CodeWarrior exit exam which I have
failed? (It links fine with the .mm extensions in CodeWarrior.)
Jerry
_______________________________________________
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