delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/24/22:14:34

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: Sat, 25 Mar 2000 02:41:42 +0100
Organization: Telenordia
Lines: 50
Message-ID: <8bh5e2$2d4$1@cubacola.tninet.se>
NNTP-Posting-Host: sdu191-237.ppp.algonet.se
X-Trace: cubacola.tninet.se 953948418 2468 195.163.237.191 (25 Mar 2000 01:40:18 GMT)
X-Complaints-To: abuse AT algo DOT net
NNTP-Posting-Date: 25 Mar 2000 01:40:18 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