• 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
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]

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


  • Subject: llvm-gcc-4.2 link-time error seen from command line but not in Xcode 3.2
  • From: Jay Reynolds Freeman <email@hidden>
  • Date: Sat, 29 Aug 2009 04:21:54 -0700

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 ...

Can anyone provide advice?

--  Jay Reynolds Freeman
---------------------
email@hidden
http://web.mac.com/jay_reynolds_freeman (personal web site)

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: SOLVED -- llvm-gcc-4.2 link-time error seen from command line but not in Xcode 3.2
      • From: Jay Reynolds Freeman <email@hidden>
    • [OT] Re: llvm-gcc-4.2 link-time error seen from command line but not in Xcode 3.2
      • From: Alastair Houghton <email@hidden>
  • Prev by Date: How to extract the "Artist" information of an song file?
  • Next by Date: Re: How to extract the "Artist" information of an song file?
  • Previous by thread: Re: How to extract the "Artist" information of an song file?
  • Next by thread: [OT] Re: llvm-gcc-4.2 link-time error seen from command line but not in Xcode 3.2
  • Index(es):
    • Date
    • Thread