delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/20/18:27:16

Message-ID: <000d01bf92ba$09707300$36eea3c3@ervsab>
From: "ervin nesimovic" <ervin DOT nesimovic AT gamma DOT telenordia DOT se>
To: <djgpp AT delorie DOT com>
References: <8b3k0t$dor$1 AT cubacola DOT tninet DOT se> <14549 DOT 59620 DOT 66707 DOT 252662 AT envy DOT midpec DOT com>
Subject: Re: Problem with degui and allegro!?
Date: Mon, 20 Mar 2000 23:17:09 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019