Static linking...



I'm trying to static link an application against ORBit so that I can
distribute the binaries across platforms without having to compile the ORBit
libs seperately on each or create binary packages thereof... (warning: my
linker skillz are weak :-))

At the moment I'm getting lots of these errors:
gcc -static -pthread -L/usr/X11R6/lib -L/usr/local/lib/mysql -L/usr/local/li
b -L../lib  -o rmp  rmp.o
rmp-corba-utils.o -llinc -lORBit-2 -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0
 -lglib-2.0 -lm -lORBitCosNaming-2 -lz -lmysqlclient -lrmp-client
/usr/local/lib/libORBit-2.a(corba-orb.lo): In function
`ORBit_ORB_start_servers':
corba-orb.lo(.text+0x2f): undefined reference to `linc_protocol_all'
/usr/local/lib/libORBit-2.a(corba-orb.lo): In function
`ORBit_locks_initialize':
corba-orb.lo(.text+0x2f5): undefined reference to `linc_mutex_new'
/usr/local/lib/libORBit-2.a(corba-orb.lo): In function
`CORBA_ORB_work_pending':
corba-orb.lo(.text+0x1735): undefined reference to `linc_main_pending'
...

All regarding linc stuff. I tried including -llinc on the command line (as
above) with no joy. Anyone have any ideas why this might happen, and how I'd
fix them?

Cheers,
Chris.

Anyone kn




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