(no subject)
(no subject)
- Subject: (no subject)
- From: Mark Rowe <email@hidden>
- Date: Fri, 14 Nov 2003 19:36:49 +1300
Hi,
I'm trying to port a program that runs on Windows and Linux to run on
Mac OS X. I've set up an XCode project and added all the required
frameworks. The biggest issue that I've run into is that XCode inserts
the source files directory into the include file search path via the -I
switch to GCC. The project has a file named string.h in it. This
causes the following error:
CompileC
build/conscience.build/conscience.build/Objects-normal/ppc/console.o
src/engine/core/console.cpp
cd /Users/mark/Documents/Source/CVS/conscience
/usr/bin/g++-3.3 -c -Fbuild -Ibuild/include
-I/Users/mark/Documents/Source/CVS/conscience/src/
-Ibuild/conscience.build/conscience.build/DerivedSources -arch ppc
-pipe -Wno-trigraphs -fpascal-strings -g -O0 -Wno-four-char-constants
-Wmost -Wno-four-char-constants -Wno-unknown-pragmas -O0
-fmessage-length=0 -mtune=G4 -ffix-and-continue
-Wp,-header-mapfile,build/conscience.build/conscience.build/
conscience.hmap
-I/Users/mark/Documents/Source/CVS/conscience/src/engine/core -include
build/conscience.build/conscience.build/PrefixHeaders/
conscience_Prefix.pch
/Users/mark/Documents/Source/CVS/conscience/src/engine/core/console.cpp
-o build/conscience.build/conscience.build/Objects-normal/ppc/console.o
In file included from /usr/include/gcc/darwin/3.3/c++/cstring:51,
from
/usr/include/gcc/darwin/3.3/c++/bits/stl_algobase.h:65,
from /usr/include/gcc/darwin/3.3/c++/vector:67,
from
/Users/mark/Documents/Source/CVS/conscience/src/engine/common.h:50,
from
/Users/mark/Documents/Source/CVS/conscience/src/engine/core/
console.cpp:12:
/Users/mark/Documents/Source/CVS/conscience/src/engine/core/string.h:
30: error: parse error before `&' token
/Users/mark/Documents/Source/CVS/conscience/src/engine/core/string.h:
62: error: syntax error before `;' token
25: class String
26: {
27: public:
28:
29: String();
30: String(const std::string & s_);
Is there any way to tell XCode not to include the source files
directory in the include file search path?
Thanks,
Mark Rowe
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.