[omniORB] linking cygomniZIOPDynamic4.dll.2 failed - "undefined reference to"
Duncan Grisby
duncan at grisby.org
Tue Oct 7 16:09:22 BST 2014
On Sat, 2014-10-04 at 16:29 +0200, szyk100 wrote:
> I try build Omniorb with Cygwin32 but I have strange linker error. Few first lines of this error are as follow:
>
> + rm -f shared/cygomniZIOPDynamic4.dll.2.0
> + g++ -shared -Wl,-soname=cygomniZIOPDynamic4.dll.2,--out-implib=libomniZIOPDynamic4.dll.a,--export-dynamic,--enable-auto-import -o shared/cygomniZIOPDynamic4.dll.2.0 -L../../../../lib -L../../../../lib shared/omniZIOPDynamic.o shared/compressionDynStubs.o shared/ziopDynStubs.o -L../orbcore/shared -lomniORB4 -lomnithread -lpthread
> /usr/lib/gcc/i686-pc-cygwin/4.8.3/../../../../i686-pc-cygwin/bin/ld: warning: --export-dynamic is not supported for PE targets, did you mean --export-all-symbols?
> shared/omniZIOPDynamic.o:omniZIOPDynamic.cc:(.text+0x35): undefined reference to `CORBA::Any::operator>>=(float&) const'
Does it work if you edit src/lib/omniORB/ziopdynamic/dir.mk to so where
it sets LIB_IMPORTS it says:
LIB_IMPORTS := $(patsubst %,$(LibPathPattern),../orbcore/shared) \
$(OMNIORB_DLL_NAME) $(OMNIORB_DYNAMIC_DLL_NAME) \
$(OMNITHREAD_LIB) $(EXTRA_LIBS)
i.e. add the $(OMNIORB_DYNAMIC_DLL_NAME) to it.
Duncan.
--
-- Duncan Grisby --
-- duncan at grisby.org --
-- http://www.grisby.org --
More information about the omniORB-list
mailing list