[omniORB] Compilling echo example problem.

Martyn martyn at ares.fils.us.edu.pl
Wed Feb 16 12:22:58 GMT 2005


I've just recompiled omniorb 4.0.5 in mingw enviroment,
and now I'm trying to compile first example "echo" in DevCpp.
But unfortunately I've got several linking error, below my
log and Makefile.

Compiler: Default compiler
Building Makefile: "D:\Dev-Cpp\Projects\echo\Makefile.win"
Executing  make...
make.exe -f "D:\Dev-Cpp\Projects\echo\Makefile.win" all
g++.exe echoSK.o eg3_clt.o  -o "echo.exe" -L"D:/dev-cpp1/lib"
-L"D:/Dev-Cpp/lib" -L"D:/Dev-Cpp/mingw32/lib"
-L"D:/msys/1.0/home/omniORB-4.0.5/lib"
../../the-agency/boost_1_31_0/the-agency/build/retail/libboost.a
../../lib/libwsock32.a ../../lib/libws2_32.a ../../lib/libmswsock.a
../../lib/libavicap32.a
../../../msys/1.0/home/omniORB-4.0.5/lib/x86_win32/libomniORB405_rt.a
../../../msys/1.0/home/omniORB-4.0.5/lib/x86_win32/libomnithread30_rt.a
../../../msys/1.0/home/omniORB-4.0.5/lib/x86_win32/libCOS405_rt.a
../../../msys/1.0/home/omniORB-4.0.5/lib/x86_win32/libCOSDynamic405_rt.a
../../../msys/1.0/home/omniORB-4.0.5/lib/x86_win32/libomniDynamic405_rt.a

Info: resolving __ZTVN5CORBA6ObjectE by linking to
__imp___ZTVN5CORBA6ObjectE (auto-import)
Info: resolving __ZTV18omniCallDescriptor by linking to
__imp___ZTV18omniCallDescriptor (auto-import)
echoSK.o(.text$_ZN5CORBA6ObjectC2Ev+0x8):echoSK.cc: variable 'vtable for
CORBA::Object' can't be auto-imported. Please read the documentation for
ld's --enable-auto-import for details.
echoSK.o(.text$_ZN18omniCallDescriptorC2EPFvPS_P11omniServantEPKcibPKS6_ib+0x17):echoSK.cc:
variable 'vtable for omniCallDescriptor' can't be auto-imported. Please
read the documentation for ld's --enable-auto-import for details.
echoSK.o(.text$_ZN18omniCallDescriptorD2Ev+0xb):echoSK.cc: variable
'vtable for omniCallDescriptor' can't be auto-imported. Please read the
documentation for ld's --enable-auto-import for details.

make.exe: *** [echo.exe] Error 1

Execution terminated

====================================================================
Makefile.win

# Project: echo
# Makefile created by Dev-C++ 4.9.9.1

CPP  = g++.exe
CC   = gcc.exe
WINDRES = windres.exe
RES  =
OBJ  = echoSK.o eg3_clt.o $(RES)
LINKOBJ  = echoSK.o eg3_clt.o $(RES)
LIBS =  -L"D:/dev-cpp1/lib" -L"D:/Dev-Cpp/lib" -L"D:/Dev-Cpp/mingw32/lib"
-L"D:/msys/1.0/home/omniORB-4.0.5/lib"
../../the-agency/boost_1_31_0/the-agency/build/retail/libboost.a
../../lib/libwsock32.a ../../lib/libws2_32.a ../../lib/libmswsock.a
../../lib/libavicap32.a
../../../msys/1.0/home/omniORB-4.0.5/lib/x86_win32/libomniORB405_rt.a
../../../msys/1.0/home/omniORB-4.0.5/lib/x86_win32/libomnithread30_rt.a
../../../msys/1.0/home/omniORB-4.0.5/lib/x86_win32/libCOS405_rt.a
../../../msys/1.0/home/omniORB-4.0.5/lib/x86_win32/libCOSDynamic405_rt.a
../../../msys/1.0/home/omniORB-4.0.5/lib/x86_win32/libomniDynamic405_rt.a
INCS =  -I"D:/dev-cpp1/include"  -I"D:/Dev-Cpp/include"
-I"D:/msys/1.0/home/omniORB-4.0.5/include"
-I"D:/Dev-Cpp/Projects/echo"
CXXINCS =  -I"D:/dev-cpp1/include/c++/3.3.1"
-I"D:/dev-cpp1/include/c++/3.3.1/mingw32"
-I"D:/dev-cpp1/include/c++/3.3.1/backward"
-I"D:/dev-cpp1/lib/gcc-lib/mingw32/3.3.1/include"  -I"D:/Dev-Cpp/include"
-I"D:/msys/1.0/home/omniORB-4.0.5/include"
-I"D:/Dev-Cpp/Projects/echo"
BIN  = echo.exe
CXXFLAGS = $(CXXINCS) -D__x86__ -D__OMNIORB4__ -D__WIN32__
-D_WIN32_WINNT=0x0400 -D__NT__ -D__OSVERSION__=4 -DHAVE_STD=1
CFLAGS = $(INCS)

.PHONY: all all-before all-after clean clean-custom

all: all-before echo.exe all-after


clean: clean-custom
	rm -f $(OBJ) $(BIN)

$(BIN): $(OBJ)
	$(CPP) $(LINKOBJ) -o "echo.exe" $(LIBS)

echoSK.o: echoSK.cc
	$(CPP) -c echoSK.cc -o echoSK.o $(CXXFLAGS)

eg3_clt.o: eg3_clt.cc
	$(CPP) -c eg3_clt.cc -o eg3_clt.o $(CXXFLAGS)


--- mart.
It is, of course, written in C.  Translation to Perl is left as an
exercise for the reader.  ;-)  -- !Larry Wall in <7448 at jpl-devvax.JPL.NASA.GOV>
-- 
We all know Linux is great... it does infinite loops in 5 seconds. -- Linus Torvalds



More information about the omniORB-list mailing list