• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Solved: "C" Functions Won't Link Between .mm Files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Solved: "C" Functions Won't Link Between .mm Files
      • From: Eric Albert <email@hidden>
    • Re: Solved: "C" Functions Won't Link Between .mm Files
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: Building on 10.4 - deploying on 10.3.9
  • Next by Date: Re: Solved: "C" Functions Won't Link Between .mm Files
  • Previous by thread: Re: A project without a library or executable issues.
  • Next by thread: Re: Solved: "C" Functions Won't Link Between .mm Files
  • Index(es):
    • Date
    • Thread