Re: Compile problems
- From: Darin Adler <darin eazel com>
- To: Alan LaViolette <apl purdue edu>, <gnome-devel-list gnome org>
- Subject: Re: Compile problems
- Date: Tue, 01 Feb 2000 14:02:32 -0800
> 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]