• 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
Re: Linker error with std C tool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linker error with std C tool


  • Subject: Re: Linker error with std C tool
  • From: Jeremy Pereira <email@hidden>
  • Date: Wed, 14 Oct 2009 12:06:03 +0100


On 14 Oct 2009, at 11:46, Jeremy Pereira wrote:


On 13 Oct 2009, at 16:21, McLaughlin, Michael P. wrote:


If I add

#include "myFunc.c"

to main.c, there is no linker error.

I am completely bewildered. Clearly, I'm missing something basic. Could
someone please tell me what it is?

Check the target. The target for your project should have a "compile sources" phase. I'd bet money on the only source file in that phase being main.c. Drag myFunc.c into the compile sources phase and it should all start working.

OK, I lose the bet, but I declare it null and void because the original poster gave false information (he didn't mention that the .c extensions were really .C).





Thanks in advance.

--
Mike McLaughlin

_______________________________________________
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


_______________________________________________ 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: Linker error with std C tool
      • From: "Sean McBride" <email@hidden>
References: 
 >Linker error with std C tool (From: "McLaughlin, Michael P." <email@hidden>)
 >Re: Linker error with std C tool (From: Jeremy Pereira <email@hidden>)

  • Prev by Date: Re: Linker error with std C tool
  • Next by Date: app won't run in iPhone simulator
  • Previous by thread: Re: Linker error with std C tool
  • Next by thread: Re: Linker error with std C tool
  • Index(es):
    • Date
    • Thread