X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Message-ID: <002001c1ce6c$50732dc0$7be15ecb@u4v4b7> From: "Amish K. Munshi" To: Subject: Re: Allegro Date: Sun, 17 Mar 2002 23:10:04 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Reply-To: djgpp AT delorie DOT com "CBFalconer" wrote in message news:<3C947E9A DOT B8D2BC3C AT yahoo DOT com>... > "Amish K. Munshi" wrote: > > > > When I try to compile the program > > > > #include > > #include > > > > int main() > > > ... snip ... > > > > using the following command > > > > gcc -lalleg test.c -o test.exe > > > > the output is c:\djgpp\bin\ld.exe: cannot open -lalleg: No such > > file or directory (ENOENT) > > > > and when I try to compile using the command > > > > gcc -o test.exe test.c > > > > the output is undefined reference to allegro_init set_color > > and all the graphics related commands. > > > > What am I doing wrong the autoexec.bat file is as follows > > Try: > > gcc test.c -o test.exe -lalleg > > The library operations come *after* the compilation proper. > > -- > Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT XXXXworldnet DOT att DOT net) > Available for consulting/temporary embedded and systems. > (Remove "XXXX" from reply address. yahoo works unmodified) > mailto:uce AT ftc DOT gov (for spambots to harvest) > > I tried that as well, but there is no difference in the output. The error is lalleg file not found _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com