Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » help with guichan please!

This thread is locked; no one can reply to it. rss feed Print
help with guichan please!
Money
Member #6,730
December 2005
avatar

hey, i have allegro installed, and guichan installed, and in dev-c++ linker i have -lalleg and -lguichan, heres my code for some widgets to show up, but i can't even get started cause i get an error..

1#include <allegro.h>
2#include <guichan.hpp>
3 
4int main(void)
5{
6 allegro_init();
7 set_gfx_mode( GFX_AUTODETECT, 640, 480, 0, 0 );
8 install_keyboard();
9 acquire_screen();
10
11 gcn::Container *newContainer;
12 gcn::Container *top;
13 newContainer = new gcn::Container();
14 newContainer->setDimension(gcn::Rectangle(50,50,100,100));
15 gcn::Window *window;
16 window = new gcn::Window("I am simple window");
17 gcn::Button *button = new gcn::Button("I am a button! Click me!");
18 gcn::Label *label = new gcn::Label("I am label!");
19 newContainer->add(button,10,10);
20 newContainer->add(label,10,50);
21 window->setContent(newContainer);
22 window->resizeToContent();
23
24 top->add(window,100,100);
25 window->setVisible(true);
26 
27
28
29
30
31
32
33
34
35
36
37
38
39
40 release_screen();
41 readkey();
42 return 0;
43}
44END_OF_MAIN();

and the runtime error is: "the procedure entry point _ZN3gcn5LabelC1ERKSs could not be located in the dynamic link library guichan.dll"

i have the guichan.dll in system32

please help

Go to: