Re: Compile problems

> g++ -I. `gtk-config --cflags --libs` -lORBit -lIIOP -lgnorba -lgnome
> -lgnomesupport -lesd -lgnomeui -lart_lgpl test.c
> text.o: In function `main':
> text.o(.text+0x28): undefined reference to `gnome_CORBA_init(char const
> *, char const *, int *, char **, GnorbaInitFlags, CORBA_Environment_type
> *)'
> collect2: ld returned 1 exit status

That looks like an error with C++ trying to get at a C function, but using
C++ linkage. The problem here is that gnorba.h is missing the extern "C"
wrapper that other files have.

BEGIN_GNOME_DECLS and END_GNOME_DECLS in gnorba.h should do the trick.

    -- Darin

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]