C file in Xcode C++ project
C file in Xcode C++ project
- Subject: C file in Xcode C++ project
- From: Michael McLaughlin <email@hidden>
- Date: Wed, 21 Nov 2007 10:37:28 -0500
- Thread-topic: C file in Xcode C++ project
I have a C source file, originally .c, which I want to include in a C++ app
project. It has the usual
extern "C" {
stuff.
I started with the Xcode C++ app stationery which builds and runs OK.
If I include the filename.c file as such in the project, I get 198 errors in
Apple C++ headers that I do not without it. I get these errors even if
filename.c is totally empty!
If I change filename.c to filename.cp, then the original errors go away but
I get 55 new errors, beginning with an Altivec declaration
vector unsigned int s;
The error in this case is
ISO C++ forbids declaration of 'vector' with no type
The problem is not missing headers because filename.c is OK in a C project.
It looks like this initial ISO error spawned the rest. Obviously, I am
missing some essential point.
Any tips?
--
Mike McLaughlin
_______________________________________________
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