From: Robert Hoehne Newsgroups: comp.os.msdos.djgpp Subject: Re: Help needed : Strange compile errors. Date: Mon, 03 Feb 1997 12:03:04 +0100 Organization: TU Chemnitz-Zwickau Lines: 22 Message-ID: <32F5C5E8.1ABD@Mathematik.tu-chemnitz.de> References: <01bc115c$44965ea0$042749c2 AT default> NNTP-Posting-Host: cancel.hrz.tu-chemnitz.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Thomas Harte wrote: > > gcc -o -O3 %1.exe %1.c libsb.a -lalleg (which is actually a batch file, The problem is, that you are telling gcc to produce as output file '-O3' linking in it the file '%1.exe'. This comes from the incrorrect order of the arguments. The argument after '-o' is the output filename. Yor commandline should be: gcc -O3 -o %1.exe %1.c libsb.a -lalleg > . . . . there are some other errors, but before I get to read them, the > screen fills up with errors such as that above, and adding '| more' to the To get the error messages redirected you should use the redir utility. Robert -- ***************************************************************** * Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau * * Post: Am Berg 3, D-09573 Dittmannsdorf * * e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE * * WWW: http://www.tu-chemnitz.de/~rho * *****************************************************************