• 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
Linking object codes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linking object codes


  • Subject: Linking object codes
  • From: Rich Frazin <email@hidden>
  • Date: Wed, 7 Dec 2005 13:59:14 -0600


    I'm new to Xcode and I've found that Apple's documentation does
not have enough examples for me to get started with  building C applications.   Here is an example problem that I would like to solve
with Xcode instead of using a Makefile:

I have two source files, main.c and brent.c.  How do I use Xcode to perform the equivalent of these two unix commands?

rich>gcc -c -o brent.o brent.c
rich>gcc -lm -o myapp brent.o main.c


I have already started the Project in Xcode and I have the two .c source files in the project.  I don't know how to tell Xcode that myapp depends on  brent.o, how to build brent.o, or how to link them.

Also, where does Xcode put the object files?

Thanks,
Rich
 _______________________________________________
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: Linking object codes
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Re: Old C Code problem
  • Next by Date: Re: Linking object codes
  • Previous by thread: Executable extension is ignored?
  • Next by thread: Re: Linking object codes
  • Index(es):
    • Date
    • Thread