Beginner ORBit/C problems
- From: Chris Backas <cb gosargon com>
- To: orbit-list gnome org
- Subject: Beginner ORBit/C problems
- Date: Tue, 14 Nov 2000 14:41:41 -0500
Greetings all,
I am trying to learn to use ORBit/Goad from C, I apologize if this is
not quite the right forum for a more GNOME/ORBit related question (if
not, please direct me to it) I'm new at GNOME, ORBit/CORBA, and Linux
programming in general, so please don't be too critical ;)
I wrote a very simple program just to test my understanding of some of
the simpler Gnorba functions - while my program compiles, it will not
link, and I've spent quite a few hours adding -l directives, trying to
guess exactly what I have to link against. So far I've got this command
line:
g++ -o goadtest goadtest.cpp -I/usr/lib/glib/include -I/usr/include
-I/usr/lib/gnome-libs/include -L/usr/lib -lORBit -lIIOP -lORBitutil
-lglib -lm -lgnorba -lgnomesupport -lgdk -lgtk -lgnorbagtk -lgnome -lesd
-ldb -lgnomeui -lart_lgpl -lpopt
It seems to me that that's a heck of a lot of libraries to link against,
so I must be missing something. That's the list I've got so far, I get
undefined reference errors from ld, so I've been trying to guess where
they might be defined - often when I add a new link command, it resolves
previous errors, buts adds new ones. For example, when I added -lgnome I
suddenly got a lot of errors for esd* functions, so I had to add -lesd
Currently, I'm down to only a few errors:
/usr/bin/ld: warning: libdb.so.2, needed by /usr/lib/libgnomeui.so, may
conflict with libdb.so.3
/tmp/ccqGd5mG.o: In function 'main':
/tmp/ccqGd5mG.o:(.text+0x38): undefined reference to
'gnorba_CORBA_init(int *, char **, GnorbaInitFlags,
CORBA_Environment_type *)'
/tmp/ccqGd5mG.o:(.text+0x38): relocation truncated to fit: R_PPC_REL24
gnorba_CORBA_init(int *, char **, GnorbaInitFlags,
CORBA_Environment_type *)
/tmp/ccqGd5mG.o:(.text+0x44): undefined reference to
'goad_server_list_get(void)'
/tmp/ccqGd5mG.o:(.text+0x44): relocation truncated to fit: R_PPC_REL24
goad_server_list_get(void)
/tmp/ccqGd5mG.o:(.text+0xb0): undefined reference to
'goad_server_list_free(GoadServerList *)'
/tmp/ccqGd5mG.o:(.text+0xb0): relocation truncated to fit: R_PPC_REL24
goad_server_list_free(GoadServerList *)
collect2: ld returned 1 exit status
Given the names of those functions, I though that libgnorba would
provide them, but that appears not to be the case. What am I missing?
My system:
PowerMac G4 450MP
YellowDog Linux CS 1.2.1
Helix Gnome 1.2 ( I *think* I installed all the development packages)
XFree 4.01
gcc version 2.95.2
Any help is appreciated!
Chris Backas
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]