On Thu, Jan 31, 2008 at 02:48:16PM +0000, Paul Herring wrote: > > g++.exe -x c++ -c E:\mark\C files\mark11.c -o E:\mark\C files\mark11.o > > -Wall -fpermissive -fconserve-space > > g++.exe: cannot specify -o with -c or -S and multiple compilations > > Failure > > Did you read this last error line? You cannot specify -o if you have -c or -S.
Actually the error is that (because of the lack of double quotes) g++ thinks there are multiple input filenames specified on the command-line, so it's confused about it being told to use only generate one output file. -o with -c and/or -S is normally fine. -o = output file -S = generate assembly -c = compile only, no link eg. g++ -c -S -o hello.asm hello.cpp
