delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
Message-ID: | <3C947E9A.B8D2BC3C@yahoo.com> |
From: | CBFalconer <cbfalconer AT yahoo DOT com> |
Organization: | Ched Research |
X-Mailer: | Mozilla 4.75 [en] (Win98; U) |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Allegro |
References: | <002901c1cd9d$0fa1b520$20ed5ecb AT u4v4b7> |
Lines: | 39 |
Date: | Sun, 17 Mar 2002 11:32:20 GMT |
NNTP-Posting-Host: | 12.90.168.178 |
X-Complaints-To: | abuse AT worldnet DOT att DOT net |
X-Trace: | bgtnsc05-news.ops.worldnet.att.net 1016364740 12.90.168.178 (Sun, 17 Mar 2002 11:32:20 GMT) |
NNTP-Posting-Date: | Sun, 17 Mar 2002 11:32:20 GMT |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie 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)
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |