delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/27/23:35:11

From: "Ervin Nesimovic" <ervin DOT nesimovic AT gamma DOT telenordia DOT se>
Newsgroups: comp.os.msdos.djgpp
Subject: NEED HELP WITH DEGUI AND ALLEGRO!
Date: Tue, 28 Mar 2000 00:06:55 +0200
Organization: Telenordia
Lines: 52
Message-ID: <8bolvk$171$1@zingo.tninet.se>
NNTP-Posting-Host: sdu44-239.ppp.algonet.se
X-Trace: zingo.tninet.se 954194740 1249 195.163.239.44 (27 Mar 2000 22:05:40 GMT)
X-Complaints-To: abuse AT algo DOT net
NNTP-Posting-Date: 27 Mar 2000 22:05:40 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello!
I would some help if there is anyone who cold help me!
my problem is that I can't create an exe fil but compiling goes very well.
Thi is answer I get when I try to run file:

Error : c:/djgpp/lib/libdegui.a(dialog_d.o)(.text+0xbde):dialog_d.cc:
undefined reference to 'gui_mouse_focus'
Error: c:/djgpp/li/libdegui.a(internal.o)(.text+0x2c2):internal.c: undefined
reference to 'gui_font_baseline'
Error: collect2: ld returned 1 exit status

And this is a file I have tried to bouild!

#include <allegro.h>
#include <degui.h>

int main(void)
{

  allegro_init();
  install_keyboard();
  install_mouse();
  install_timer();
  set_gfx_mode(GFX_AUTODETECT,640,480,0,0);
  set_default_object_colors(0,235,236,237,238,239,240,241);


   // Object definitions - DEGUI 1.25 beta
   window_object mainwindow;
   button_object end("Avsluta",0,true);
   text_object Hello("Hello World");

   // Add Objects to the dialog
   dialog the_dialog;
   the_dialog.add(mainwindow,160,125,310,200);
   the_dialog.add(end,385,295,76,18);
   the_dialog.add(Hello,270,205,110,20);
   the_dialog.center();
   the_dialog.popup();

   show_mouse(NULL);
   set_gfx_mode(GFX_TEXT,80,25,0,0);
   allegro_exit();
   return 0;
}

I would be thankful for all help I could get!
/ervin




- Raw text -


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