On 17 Nov 2005, at 15:48, Chris Espinosa wrote:
On Nov 17, 2005, at 7:37 AM, Nick Dowell wrote:
I've been trying to build a c++ Xcode 2.2 project under gcc 3.3
in order to ship a c++ based solution to customers running MacOS
versions prior to 10.3.9.
The project builds fine with gcc 4, but now I always get this
error:
"gcc-3.3: cannot specify -o with -c or -S and multiple
compilations"
The strange this is, I can build some projects with gcc 3.3
(using the GCC_VERSION build setting) but not wxWidgets (which
other projects depend on). And even projects which work have
both "-o" and "-c" as options to gcc, so the error message seems
very misleading.
Please post the compiler invocation line from the build
transcript for the file that generates this error. There's no way
to tell what's happening without seeing the input parameters to
the compiler.
Here's the offending invocation:
cd /Users/nick/Documents/trunk/lib/wxWidgets-2.6/src
setenv MACOSX_DEPLOYMENT_TARGET 10.3
setenv NEXT_ROOT /Developer/SDKs/MacOSX10.3.9.sdk
/usr/bin/gcc-3.3 -x c++ -arch ppc -pipe -Wno-trigraphs -
fpascal-strings -fasm-blocks -Os -Wswitch -Wuninitialized -
DNO_GCC_PRAGMA -D__WXMAC__ -DwxUSE_BASE=1 -D_FILE_OFFSET_BITS=64 -
D_LARGE_FILES -D__WXMAC_XCODE__=1 -DWX_PRECOMP=1 -DMACOS_CLASSIC -
fmessage-length=0 -mtune=G4 -Wno-invalid-offsetof -Wmost -Wno-four-
char-constants -Wno-unknown-pragmas -F/Users/nick/Documents/trunk/
lib/wxWidgets-2.6/src/build/Deployment -I/Users/nick/Documents/
trunk/lib/wxWidgets-2.6/src/build/Deployment/include -I/Users/nick/
Documents/trunk/lib/wxWidgets-2.6/src/build/include -I../include -
Imac/carbon/morefilex -Icommon -Ijpeg -Ipng -Iregex -Iexpat/lib -
Itiff -I- -I/Developer/SDKs/MacOSX10.3.9.sdk/Developer/Headers/
FlatCarbon -I/Developer/SDKs/MacOSX10.3.9.sdk/usr/include -I/Users/
nick/Documents/trunk/lib/wxWidgets-2.6/src/build/wxWindows.build/
Deployment/static.build/DerivedSources -
DMAC_OS_X_VERSION_MIN_REQUIRED=1030 -fconstant-cfstrings -
D__CONSTANT_CFSTRINGS__ -iquote /Users/nick/Documents/trunk/lib/
wxWidgets-2.6/src/build/include -iquote ../include -iquote mac/
carbon/morefilex -iquote common -iquote jpeg -iquote png -iquote
regex -iquote expat/lib -iquote tiff -isystem /Developer/SDKs/
MacOSX10.3.9.sdk/usr/include/gcc/darwin/3.3 -I/Developer/SDKs/
MacOSX10.3.9.sdk/usr/include/gcc/darwin/3.3/c++ -I/Developer/SDKs/
MacOSX10.3.9.sdk/usr/include/gcc/darwin/3.3/c++/ppc-darwin -
isystem /Developer/SDKs/MacOSX10.3.9.sdk/usr/include -include /
Users/nick/Documents/trunk/lib/wxWidgets-2.6/src/../include/wx/
wxprec.h -c /Users/nick/Documents/trunk/lib/wxWidgets-2.6/src/
common/file.cpp -o /Users/nick/Documents/trunk/lib/wxWidgets-2.6/
src/build/wxWindows.build/Deployment/static.build/Objects-normal/
ppc/file.o
gcc-3.3: cannot specify -o with -c or -S and multiple compilations