delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
Message-ID: | <002001c1ce6c$50732dc0$7be15ecb@u4v4b7> |
From: | "Amish K. Munshi" <amishmunshi AT yahoo DOT com> |
To: | <djgpp AT delorie DOT com> |
Subject: | Re: Allegro |
Date: | Sun, 17 Mar 2002 23:10:04 +0530 |
MIME-Version: | 1.0 |
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" <cbfalconer AT yahoo DOT com> wrote in message news:<3C947E9A DOT B8D2BC3C AT yahoo DOT com>... > "Amish K. Munshi" wrote: > > > > When I try to compile the program > > > > #include <stdio.h> > > #include <allegro.h> > > > > 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |