[omniORB] Linking problems on OS X
Burton, Craig
CBurton at verisign.com
Tue Oct 28 09:07:57 GMT 2003
I had the same problem a couple of weeks ago in Project Builder. It's not an omniORB problem, per se. What I found was that the dynamic libraries needed to be specified in two places:
1. 'Files' tab:
External Frameworks and Libraries
libomniORB4 (actual library names on your system)
libomnithread
2. 'Targets' tab:
<Your Target>
Summary
Settings
Search Paths
Libraries
/usr/local/omniORB/lib (your location may vary)
When you run the resulting application from a shell, remember to set DYLD_LIBRARY_PATH to include the location of the omni libraries (if you use dynamic linking). I believe you can specify this in PB as well, but I haven't tried that.
Hope this helps.
-----Original Message-----
From: Bart van Stal [mailto:bvanstal at vangennep.nl]
Sent: Tuesday, October 28, 2003 5:48 AM
To: omniorb-list at omniorb-support.com
Subject: [omniORB] Linking problems on OS X
Hi,
I'm trying to build a project on OS X with CodeWarrior. I have used OmniOrb
3.0.4 so far and it always worked fine (Carbon build with GUSI 2.2)
Now I have downloaded and build the 4.0.2 version. Everything seems to work
fine even the examples build and run fine.
Now I try to build my own project (OS X only) but either with CodeWarrior or
Apple's Project Builder I keep getting linker errors:
Link Error : undefined: '_omniFinalCleanup::~_omniFinalCleanup()' (non
lazy ptr IL)
Referenced from '__sinit_:TransactionModuleMain_cpp' in
TransactionModuleMain.cpp
Link Error : undefined: 'omni_thread::init_t::~init_t()' (non lazy ptr IL)
Referenced from '__sinit_:TransactionModuleMain_cpp' in
TransactionModuleMain.cpp
Link Error : undefined: 'CORBA::ORB_init(int&, char**, const char*,
char**(*)[2])' (code)
Referenced from 'main' in TransactionModuleMain.cpp
I have included the 6 libraries that were build using the build of OmniOrb:
- libCOS4.0.2.dylib
- libCOSDynamic4.0.2.dylib
- linomniCodeSets4.0.2.dylib
- libomniDynamic4.0.2.dylib
- libomniORB4.0.2.dylib
- Linomnithread.3.0.dylib
Can Anyone tell me or give me a hint what I am doing wrong?
Thanks
Bart van Stal
_______________________________________________
omniORB-list mailing list
omniORB-list at omniorb-support.com
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
More information about the omniORB-list
mailing list