Re: [Glade 2] Compilatrion problems

From: Nils O. Selåsdal (NOS_at_Utel.no)
Date: 09/22/05


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 ...
};



Relevant Pages

  • [Glade 2] Compilatrion problems
    ... I've made the .glade xml file, ... First problem: ... compilation with cc raises error: ...
    (comp.os.linux.development.apps)
  • Re: overiding onwndmsg?
    ... For example, in a CFormView, the menu handlers in one file ... You just include the appropriate .h file in each compilation. ... In the Microsoft editor, "Edit ... Note that none of this requires you go outside the basic MFC mechanisms. ...
    (microsoft.public.vc.mfc)
  • Re: async interrupts, without-aborts
    ... `Interrupts' in this case mean any sort of ... the first problem is often ... With CL, though, I'm not yet sure how handlers really work nor how ... whether they can inspect and modify unnamed temporaries and other ...
    (comp.lang.lisp)
  • Re: How easy is it to learn VB compared to C#?
    ... Surely XAML compilation isn't done by both CSC and VBC? ... code loading the BAML, code that connects handlers, etc. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: compilation
    ... built lib and DLL. ... Compilation stopped on a first problem, a include not found, which was ...
    (comp.object.corba)

Loading