Mail Archives: djgpp/1998/07/24/01:45:52
savar2 AT my-dejanews DOT com wrote:
>
> I know this will sound dumb to pros, but I am really new to DOS, C, and
> DJGPP. I'm using rhide, and I can compile my first little C/Allegro program
> just fine, but when I go to build all, I get "Error: undefined reference to
> 'allegro_init'" and similar messages. What's wrong? Please reply to email,
> because I don't have a newsfeed right now and can only read via dejanews.
>
> -----== Posted via Deja News, The Leader in Internet Discussion ==-----
> http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
You have got to link with the liballeg.a file. Do this by adding
-lalleg to your compiling command line, so it looks something like this:
gcc foo.c -o foo.exe -lalleg
Peter Allen
- Raw text -