Linker Errors



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Good day

I am trying to compile an application using the following tools:

gcc-3.3-23
orbit2-2.6.0-21
orbit2-devel-2.6.0-21
orbitcpp-1.3.5 (from source, not shipped with distro)

on SuSE 8.2. However, I suspect that I am not linking correctly, as my app
compiles to an object (.o) file, but it does not want to link correctly.

Thanks to Murray for suggesting pkg-config, it cut my error file from 134 
lines to 17. Could you please tell me which other libraries I need / must 
link to? I have included my list of ORBit and IDL libraries, as well as an 
extract of my Makefile.

sdr_corba : sdr_corba.o
	g++ sdr_corba.o `pkg-config --cflags --libs ORBit-2.0-cpp` \
	-o sdr_corba 2> linker_errors

Also, (just for interest's sake) using the c backend generates a -skelimpl.c 
file with the --skeleton-impl option, but the cpp backend does not generate 
something similar. Is this correct? And how do I generate files with a .cpp 
extension in stead of .cc?

Best Regards
Johan
- -- 
     "How precious also are thy thoughts unto me, O God! how
      great is the sum of them! If I should count them, they
      are more in number than the sand; when I awake, I am 
      still with thee."    Psalms 139: 17,18 

- --------------------------------------------------------------------------------

"There is beauty in simplicity"		-- Johan Cronje

- --------------------------------------------------------------------------------
Johan Cronje

Digital Signal Processing / Telecommunications Group
Room E355
Department Electrical and Electronic Engineering
University of Stellenbosch

jcronje dsp sun ac za
http://www.dsp.sun.ac.za/~jcronje
GPG Key: http://www.dsp.sun.ac.za/~jcronje/jcronje.asc
- --------------------------------------------------------------------------------

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE+2OlrtFKZVBigPpsRAgZfAKCuZ8h2caCize1LvTQEjoxChhGuUgCdFdzD
pdk+E5g/X1CFDEwVTRlTACk=
=PDNR
-----END PGP SIGNATURE-----
/usr/lib/libORBit-2-cpp.a
/usr/lib/libORBit-2-cpp.la
/usr/lib/libORBit-2-cpp.so
/usr/lib/libORBit-2-cpp.so.5
/usr/lib/libORBit-2-cpp.so.5.0.0
/usr/lib/libORBit-2.a
/usr/lib/libORBit-2.la
/usr/lib/libORBit-2.so
/usr/lib/libORBit-2.so.0
/usr/lib/libORBit-2.so.0.0.0
/usr/lib/libORBit-idl-backend-cpp.a
/usr/lib/libORBit-imodule-2.a
/usr/lib/libORBit-imodule-2.la
/usr/lib/libORBit-imodule-2.so
/usr/lib/libORBit-imodule-2.so.0
/usr/lib/libORBit-imodule-2.so.0.0.0
/usr/lib/libORBit.a
/usr/lib/libORBit.so
/usr/lib/libORBit.so.0
/usr/lib/libORBit.so.0.5.17
/usr/lib/libORBitCosNaming-2.a
/usr/lib/libORBitCosNaming-2.la
/usr/lib/libORBitCosNaming-2.so
/usr/lib/libORBitCosNaming-2.so.0
/usr/lib/libORBitCosNaming-2.so.0.0.0
/usr/lib/libORBitCosNaming.a
/usr/lib/libORBitCosNaming.so
/usr/lib/libORBitCosNaming.so.0
/usr/lib/libORBitCosNaming.so.0.5.17
/usr/lib/libORBitutil.a
/usr/lib/libORBitutil.so
/usr/lib/libORBitutil.so.0
/usr/lib/libORBitutil.so.0.5.17
/usr/lib/libIDL-0.6.so.0
/usr/lib/libIDL-0.6.so.0.4.4
/usr/lib/libIDL-2.a
/usr/lib/libIDL-2.so
/usr/lib/libIDL-2.so.0
/usr/lib/libIDL-2.so.0.0.0
/usr/lib/libIDL.a
/usr/lib/libIDL.so
/usr/lib/libIDLConf.sh
sdr_corba.o(.text+0x8f): In function `_orbitcpp::stub::sdr_corba::sdr_subcontroller::return_attributes()':
: undefined reference to `sdr_corba_sdr_subcontroller_return_attributes'
sdr_corba.o(.text+0x1d8): In function `_orbitcpp::stub::sdr_corba::sdr_subcontroller::return_attribute_value(char const*)':
: undefined reference to `sdr_corba_sdr_subcontroller_return_attribute_value'
sdr_corba.o(.text+0x2ad): In function `_orbitcpp::stub::sdr_corba::sdr_subcontroller::return_component_name()':
: undefined reference to `sdr_corba_sdr_subcontroller_return_component_name'
sdr_corba.o(.text+0x452): In function `POA_sdr_corba::sdr_subcontroller::_orbitcpp_fini(void*, CORBA_Environment_type*)':
: undefined reference to `POA_sdr_corba_sdr_subcontroller__fini'
sdr_corba.o(.text+0x809): In function `POA_sdr_corba::sdr_subcontroller::sdr_subcontroller[not-in-charge]()':
: undefined reference to `POA_sdr_corba_sdr_subcontroller__init'
sdr_corba.o(.text+0x8f3): In function `POA_sdr_corba::sdr_subcontroller::sdr_subcontroller[in-charge]()':
: undefined reference to `POA_sdr_corba_sdr_subcontroller__init'
sdr_corba.o(.rodata+0x58): undefined reference to `TC_sdr_corba_component_name_struct'
sdr_corba.o(.rodata+0x5c): undefined reference to `TC_sdr_corba_attributes_corba_struct'
sdr_corba.o(.rodata+0x60): undefined reference to `TC_sdr_corba_attributes_list_struct'
sdr_corba.o(.rodata+0x64): undefined reference to `TC_sdr_corba_sdr_subcontroller_struct'
collect2: ld returned 1 exit status


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