Re: Forcing a single source file to compile with different compiler
Re: Forcing a single source file to compile with different compiler
- Subject: Re: Forcing a single source file to compile with different compiler
- From: Scott Tooker <email@hidden>
- Date: Wed, 16 May 2007 09:38:53 -0700
There are two good solutions here:
- By far, the best thing to do is change the file extension on the
file to .c. This is the cleanest way to deal with this.
- If for some reason you can't change the file extension on the file
itself, bring up the inspector for the file reference and change the
filetype. This is better than adding "-x c" since the debugger will
also honor the filetype set in the inspector.
Scott
On May 15, 2007, at 11:12 PM, Mike wrote:
I have a Carbon project in XCode 2.4.1. I have a .cp library file
but for this project I want just that one file to compile as a C,
not a C++ file. Is there a way to force XCode to use the C compiler
on just that one file instead of using the C++ compiler?
Thanks,
Mike
_______________________________________________
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