Mail Archives: djgpp/2000/03/20/18:27:16
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?
----- Original Message -----
From: "Prashant TR" <tr AT midpec DOT com>
Newsgroups: comp.os.msdos.djgpp
To: <djgpp AT delorie DOT com>
Sent: Monday, March 20, 2000 10:01 AM
Subject: Re: Problem with degui and allegro!?
> On 19 March 2000, Ervin Nesimovic wrote:
>
> > I have installed a c++ (djgpp) compilator and when I want to run some
*.cc
> > files I get an error message. Compiling goes very well, but not making
*.exe
> > files. I have copied files to lib and bin kataloges. I linked them in
> > libraries, but it still won't work.
>
> Please tell us the exact commandline you used to compile your program. You
> need to compile it this way.
>
> gpp test.cc -o test.exe
>
> You should get an exe file in this case. Otherwise, there could be a
problem
> with the installation.
>
> And what files are those which you copied to the bin and lib directories.
> There shouldn't be a need to do this. All you need to do is unzip the
> packages with the pathnames.
- Raw text -