Mail Archives: djgpp/2000/09/09/14:48:06
On Sat, 9 Sep 2000 17:57:51 +0300, "Tony" <mail_box AT iobox DOT fi> wrote:
>K Donovan <dood DOT s AT ihug DOT co DOT nz> kirjoitti
>viestissä:8pc6ng$4pk$1 AT news DOT ihug DOT co DOT nz...
>> gcc map.c -o map.exe -lalleg
>> When I (try to) compile with allegro (using DJGPP) I get the message '
>> c:/djgpp/bin/ld.exe: cannot find -lalleg'
>> What does that mean how can I fix it?
>
>U understand English?
>Compiler doesn't find liballeg.a
But that's not how to _fix_ it.
To OP: First build and install Allegro as described in readme.dj
C:\...\ALLEGRO>fixdjgpp
Converting source to DJGPP format...
C:\...\ALLEGRO>make
Compiling Allegro for DJGPP, optimized...
[wait an hour or so]
C:\...\ALLEGRO>make install
Now test your Allegro installation by trying to build
/* allegro-hello.c by Damian Yerrick */
#include <allegro.h>
int main(void)
{
allegro_init();
install_timer();
install_keyboard();
if(set_gfx_mode(GFX_AUTODETECT, 320, 200, 0, 0) < 0)
return 1;
alert("Hello world", "", "",
"OK", 0, 13, 0);
return 0;
}
C:\...>gcc -Wall -O allegro-hello.c -lalleg -o allegro-hello.exe
If you have any problems building allegro-hello.c, write back.
--
MS (n) 1. A debilitating and surprisingly widespread affliction
that renders the sufferer barely able to perform the simplest
task. 2. A disease, multiple sclerosis (see).
This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses. http://www.mcafee.com/
- Raw text -