Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xcode and g++




On May 18, 2005, at 5:07 PM, Wesley Smith wrote:

I'm using Xcode 1.5 and want to compile my c++ project with g++.  How

do I tell Xcode to use g++ instead of gcc which it is current;y doing?



'gcc' is the Gnu Compiler Collection.  /usr/bin/gcc is a compiler driver, that is, a front end for the several compilers in the collection.  If you pass it a .cp file, it actually uses the g++ compiler to compile it.  So it is already doing what you want it to do.

The -x option to gcc can force an override of the compiler driver's choice of compilers to correspond to your source's extension.  

Chris
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >debug build balloons in size from 10 MB to 260 MB (From: garvan <email@hidden>)
 >xcode and g++ (From: Wesley Smith <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.