Mail Archives: djgpp/1999/07/07/00:38:59.1
In article <7lth18$l2p$1 AT nnrp1 DOT deja DOT com>,
Jason <jason4chen AT my-deja DOT com> wrote:
>Hi all,
>
>I downloaded egcs-1_1_2-mingw32.zip from internet, and installed on my
>c: drive. However, I am not able to let the g++ command compile my c++
>program!
comp.os.msdos.djgpp readers may find this quite off-topic.
>
>Here are the command line I tried:
>g++ -g -O -c c:\egcs\bin\overload.cpp
>g++ -g -O -o main.exe -c c:\egcs\bin\overload.cpp
>
>Both gave me such message:
>cpp.exe: Too many arguments
>
I don't know what the problem is, but perhaps gcc is picking up the
wrong cpp.exe. Run gcc with -v option and see what it's really doing.
Perhaps you have GCC_EXEC_PREFIX defined in the environment (or
COMPILER_PATH or LIBRARY_PATH) that is interfering with GCC's
lookup algorithm for subprograms like cpp.
btw, you don't really want to put user files *anywhere* under the
compiler install directory. It's very bad practice to mess with
software installation area.
Regards,
Mumit
- Raw text -