xcode 2.2 compiles .m file as C++
xcode 2.2 compiles .m file as C++
- Subject: xcode 2.2 compiles .m file as C++
- From: Kent Sorensen <email@hidden>
- Date: Wed, 11 Jan 2006 14:23:21 -0500
I have a carbon xcode project, using GCC 4 to which I've added a .m
file. During compile this file causes around 9857 errors (!!). The
cause is that the "-x c++" is passed to the compiler so all the obj-c
header files cause syntax errors..
In the target settings I have "compile sources as: according to file
type", and if I select the .m and do a Get Info in xcode, it says that
the file type is "sourcecode.c.objc" so I don't understand why it
passes the -x c++ flag.
I've uploaded an abbreviated build log to
http://paste.lisp.org/display/15630.
I might add that the .m file comes unmodified from another xcode
project that builds fine and I have a perfectly working codewarrior
project that includes this .m file.
Any suggestions welcome.
Kent Sorensen
_______________________________________________
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