On Jan 31, 2008 2:36 PM, mark <[EMAIL PROTECTED]> wrote:
> please anyone help me determine the problem here.
> i have this sample program compiled and run with gcc for windows.

[snip]

> 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.

You have -c and -o in your compilation attempt. In addition you have
unquoted file paths with spaces in.

Rename your file to something sensible like mark11.cpp then try
something akin to the following:

cd E:\mark\C files\
g++ mark11.cpp -o mark11.exe -Wall -fpermissive  -fconserve-space



-- 
PJH

http://shabbleland.myminicity.com/ind

Reply via email to