• 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: llvm-gcc-4.2 link-time error seen from command line but not in Xcode 3.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: llvm-gcc-4.2 link-time error seen from command line but not in Xcode 3.2


  • Subject: Re: llvm-gcc-4.2 link-time error seen from command line but not in Xcode 3.2
  • From: Chris Espinosa <email@hidden>
  • Date: Sat, 29 Aug 2009 12:05:13 -0700


On Aug 29, 2009, at 11:33 AM, Jay Reynolds Freeman wrote:

This may not be an Xcode question, but someone on the cocoa-dev list said I should try it here rather than there; I am actually not sure where to post it ...

I have some C++ files used in a Snow Leopard / Xcode (3.2) project, that compiles and links in Xcode with no trouble, with the compiler set to llvm-gcc-4.2. However, when I try to compile and link something that uses those same files from the command line, directly invoking llvm-gcc-4.2 as /Developer/usr/bin/llvm-gcc-4.2, with no explicit libraries indicated to link to, I get an error message from the linker to the effect that it cannot find "new" and "delete". The *same* source code compiles and links from the command line if I merely change the compiler to straight g++-4.2.

I suspect there is something simple that I need to link in, but I can't find documentation ...

This isn't really an Xcode problem, because my code in fact compiles and links properly under Xcode; nevertheless ...

It would really help if you posted the actual and complete compiler invocation and errors, rather than paraphrasing them.


Chris
_______________________________________________
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: llvm-gcc-4.2 link-time error seen from command line but not in Xcode 3.2
      • From: Jay Reynolds Freeman <email@hidden>
References: 
 >llvm-gcc-4.2 link-time error seen from command line but not in Xcode 3.2 (From: Jay Reynolds Freeman <email@hidden>)

  • Prev by Date: Re: Verbose Output in Build Results Window - Xcode 3.2
  • Next by Date: Re: Verbose Output in Build Results Window - Xcode 3.2
  • Previous by thread: llvm-gcc-4.2 link-time error seen from command line but not in Xcode 3.2
  • Next by thread: Re: llvm-gcc-4.2 link-time error seen from command line but not in Xcode 3.2
  • Index(es):
    • Date
    • Thread