From: khan AT xraylith DOT wisc DOT edu (Mumit Khan) Newsgroups: comp.os.msdos.djgpp Subject: Re: how to compile with g++ in EGCS Date: 6 Jul 1999 22:29:27 GMT Organization: Center for X-ray Lithography, UW-Madison Lines: 32 Message-ID: <7lu007$do6$1@news.doit.wisc.edu> References: <7lth18$l2p$1 AT nnrp1 DOT deja DOT com> NNTP-Posting-Host: modi.xraylith.wisc.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <7lth18$l2p$1 AT nnrp1 DOT deja DOT com>, Jason 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