Re: [Glade 2] Compilatrion problems
From: Nils O. Selåsdal (NOS_at_Utel.no)
Date: 09/22/05
- Next message: Gavin Yu: "One problem about ioctl during porting from solaris to linux"
- Previous message: Teel: "[Glade 2] Compilatrion problems"
- In reply to: Teel: "[Glade 2] Compilatrion problems"
- Next in thread: Teel: "Re: [Glade 2] Compilatrion problems"
- Reply: Teel: "Re: [Glade 2] Compilatrion problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 22 Sep 2005 10:22:54 +0200
Teel wrote:
> Hi!
> I'm trying to do the example from site:
> http://developer.gnome.org/doc/API/2.0/libglade/libglade-notes.html
>
> I've made the .glade xml file, which you can find here:
> http://inet24.pl/~morales/glade/
>
> First problem:
> compilation with cc raises error:
> #: cc -o test test.cc `pkg-config --cflags --libs libglade-2.0`
> /tmp/ccM0oe80.o:(.eh_frame+0x11): undefined reference to
> `__gxx_personality_v0'
> collect2: ld returned 1 exit status
cc doesn't know about varios other things that might need to be linked
in for
C++ applications.
> So i use g++, like this:
> #: g++ -o test test.cc `pkg-config --cflags --libs libglade-2.0`
>
> And this is the second problem:
> The program compiles silently (g++), without any warning, but while
> starting I get (main:23176): libglade-WARNING **: could not find signal
> handler 'some_signal_handler_func'.
>
> I try with -export-dynamic option and without it, tried also
> -Wl,-export-dynamic, still the same.
>
> Do you have any idea, why cc raises error and with g++ my signal
> connections fail?
Compiling your program as c++ makes some_signal_handler_func have
C++ linkage, not C, as libglade assumes.
(g++ mangle its name).
Just use C, or make your handlers
extern "C" {
your handler ...
};
- Next message: Gavin Yu: "One problem about ioctl during porting from solaris to linux"
- Previous message: Teel: "[Glade 2] Compilatrion problems"
- In reply to: Teel: "[Glade 2] Compilatrion problems"
- Next in thread: Teel: "Re: [Glade 2] Compilatrion problems"
- Reply: Teel: "Re: [Glade 2] Compilatrion problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|