Mail Archives: djgpp/2000/03/20/19:50:26
On Mon, 20 Mar 2000 23:17:09 +0100, "ervin nesimovic"
<ervin DOT nesimovic AT gamma DOT telenordia DOT se> wrote:
>Here is what I had typed:
>
>#include <allegro.h>
>void initieraGrafik();
>
>int main()
>{
> initieraGrafik();
> textout_centre(screen,font,"Hello World",160,100,2);
> readkey();
> return 0;
>}
>END_OF_MAIN();
>
>void initieraGrafik()
>{
> allegro_init();
> install_keyboard();
> set_gfx_mode(GFX_VGA,320,200,0,0);
> return;
>}
>And answer I get
>error: grafika.o: In function 'main':
>Error:grafika.cc(.text+0x2f): undefined reference to 'font'
>same for 'screen' and 'texout_center' and 'readkey'.
>There is allso an Error for : undefined reference to 'install_allegro' and
>'install_keyboard' and 'set_gfx_mode'
>
>So I wander can it be with my installation. I have copied libdegui.a to lib
>and builder.exe to bin and made a link in libraries for emu, alleg and
>degui!
>Can you help me now?
It's not picking up -lalleg for some reason. When you built
Allegro, did you forget to
C:\DJGPP\Allegro>make install
--
Damian Yerrick http://yerricde.tripod.com/
Comment on story ideas: http://home1.gte.net/frodo/quickjot.html
AOL is sucks! Find out why: http://anti-aol.org/faqs/aas/
View full sig: http://www.rose-hulman.edu/~yerricde/sig.html
This is McAfee VirusScan. Add these two lines to your .sig to
prevent the spread of .sig viruses. http://www.mcafee.com/
- Raw text -