www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/02/14:16:42

From: "DeHackEd" <Not DOT given AT out>
References: <35ed4a6d DOT 0 AT news2>
Subject: Re: Autoexec.bat problem in DJGPP
Date: Wed, 2 Sep 1998 14:11:33 -0400
Lines: 47
Message-ID: <#GLv5zp19GA.259@upnetnews03>
Newsgroups: comp.os.msdos.djgpp
NNTP-Posting-Host: d23-bn01-blvl-pdi.attcanada.net [142.194.131.23]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

GCC is a command-line compiler. It assumes all the information will be on the
command line. AUTOEXEC has nothing to do with it (unless GCC gives you a bad
command or filename). The setup is correct, but you need to specify command-line
options. Like this:

gcc test1.c    <compiles test1.c to a.exe>
gcc test1.c -o test1.exe  <compiler test1.c to test1.exe>
gcc test1.c test2.c -o test.exe

<compiles test1.c and test2.c and combines them into test.exe>

gcc test1.c -c <compiler test1.c but does not make an EXE, it makes test1.o>

This should be in the readme file too. If you want something more convenient,
try looking for RHIDE - runs the compiler for you and is a good looking C editor
as well.

--
"DeHackEd"

My Email address in the header is fake (spammers). Email me at this address:

http://www.geocities.com/cgi-bin/homestead/mail.pl?dehacked
EarlBlunt wrote in message <35ed4a6d DOT 0 AT news2>...
>Hi,
>
>I have modified the autoexec.bat according to what readme.1st said but after
>restarting my system, an error which says input file not found came out when
>i ran gcc.exe.
>Anyone knows how to solve this problem?
>I include the my autoexec.bat settings here:
>
>rem - By Windows Setup - C:\WINDOWS\COMMAND\MSCDEX.EXE /D:SSCD000 /M:10
>set path=c:\djgpp\bin;C:\WINDOWS;C:\WINDOWS\COMMAND
>set djgpp=c:\djgpp\djgpp.env
>set path=c:\djgpp\bin;C:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND
>
>Your assistance will be greatly appreciated.
>
>--
>DO YOU YAHOO!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019