Re: Compile problems



Alan LaViolette <apl@purdue.edu> writes: 
> g++ -I. `gtk-config --cflags --libs` -lORBit -lIIOP -lgnorba -lgnome
> -lgnomesupport -lesd -lgnomeui -lart_lgpl test.c
> 

Try:
  g++ `gnome-config --cflags gnomeui gnorba` `gnome-config --libs gnomeui gnorba` 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
> 

In the future, the way to resolve this error is:
 - what library is gnome_CORBA_init() found in?
 - add that library to the link line

Havoc



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