[Ace-users] Compiling ACE with MinGw
jnosewor at mc.com
jnosewor at mc.com
Thu Jun 21 14:23:25 CDT 2007
5.5.8
HOST MACHINE and OPERATING SYSTEM:
XP Pro
TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
COMPILER NAME AND VERSION (AND PATCHLEVEL):
MinGW 5.0.0 not sure which gcc version 5.0 has I just deleted mingw
off my system
in hopes of installing an earlier version that might work. Ive
heard that the
linker provided with MinGw never works the same accross two
versions.
THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
specific file, simply state which one]:
"ace/config-win32.h"
THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if you
use a link to a platform-specific file, simply state which one
(unless this isn't used in this case, e.g., with Microsoft Visual
C++)]:
platform_mingw32.GNU
SYNOPSIS:
My ACE build using MinGW appeared to be successful. I ran the buid
with static_libs=1. The build generated the expected .a files in the
$ACE_ROOT/lib directory. When I attempt to link a simple server/client
program I get alot of errors telling me there are undefined
references in the program. It seems as if gcc is still trying to
import specific references from a DLL even though it appears that I am
successfully linking agaist the static libs (.a files) that were
generated in the build process. A snippet of the errors that I am
seeing can be see below. Any help would be appreciated. Thanks.
$ c++ -o server server.o callbackS.o callbackC.o -L/d/Work/ACE_TAO/
ACE_wrappers/lib -lACE -lTAO_PortableServer -lTAO_AnyTypeCode -lTAO -
lws2_32 -l
mswsock -lwsock32 -lnetapi32
server.o(.text+0x1de): In function `ZN11Server_impl5helloEP8Callback':
d:/Work/CORBA/example/Frank/server.cpp:22: undefined reference to
`_imp___ZN5CORBAlsERSoRKNS_9ExceptionE'
server.o(.text+0x364): In function `Z10ace_main_iiPPc':
d:/Work/CORBA/example/Frank/server.cpp:32: undefined reference to
`_imp___ZN5CORBA8ORB_initERiPPcPKc'
server.o(.text+0x3a4):d:/Work/CORBA/example/Frank/server.cpp:33:
undefined reference to
`_imp___ZN5CORBA3ORB26resolve_initial_referencesEPKc'
server.o(.text+0x3d4):d:/Work/CORBA/example/Frank/server.cpp:34:
undefined reference to
`_imp___ZN14PortableServer3POA7_narrowEPN5CORBA6ObjectE'
server.o(.text+0x52a):d:/Work/CORBA/example/Frank/server.cpp:51:
undefined reference to
`_imp___ZN5CORBA3ORB16object_to_stringEPNS_6ObjectE'
server.o(.text+0x53e):d:/Work/CORBA/example/Frank/server.cpp:51:
undefined reference to `_imp___ZN5CORBA10String_varC1EPc'
server.o(.text+0x558):d:/Work/CORBA/example/Frank/server.cpp:52:
undefined reference to `_imp___ZlsRSoRKN5CORBA10String_varE'
server.o(.text+0x5fc):d:/Work/CORBA/example/Frank/server.cpp:52:
undefined reference to `_imp___ZN5CORBA10String_varD1Ev'
server.o(.text+0x624):d:/Work/CORBA/example/Frank/server.cpp:52:
undefined reference to `_imp___ZN5CORBA10String_varD1Ev'
server.o(.text+0x6b6):d:/Work/CORBA/example/Frank/server.cpp:60:
undefined reference to `_imp___ZN5CORBA3ORB3runEv'
callbackS.o(.text+0x1ae): In function `ZN12POA_CallbackC1Ev':
d:/Work/CORBA/example/Frank/callbackS.cpp:189: undefined reference to
`_imp___ZN24TAO_Abstract_ServantBaseC2Ev'
callbackS.o(.text+0x1d1):d:/Work/CORBA/example/Frank/callbackS.cpp:
189: undefined reference to `_imp___ZN15TAO_ServantBaseC2Ev'
callbackS.o(.text+0x230):d:/Work/CORBA/example/Frank/callbackS.cpp:
190: undefined reference to `_imp___ZN24TAO_Abstract_ServantBaseD2Ev'
callbackS.o(.text+0x2f5): In function `ZN12POA_CallbackC1ERKS_':
d:/Work/CORBA/example/Frank/callbackS.cpp:196: undefined reference to
`_imp___ZN24TAO_Abstract_ServantBaseC2ERKS_'
callbackS.o(.text+0x329):d:/Work/CORBA/example/Frank/callbackS.cpp:
196: undefined reference to `_imp___ZN15TAO_ServantBaseC2ERKS_'
callbackS.o(.text+0x378):d:/Work/CORBA/example/Frank/callbackS.cpp:
196: undefined reference to `_imp___ZN24TAO_Abstract_ServantBaseD2Ev'
callbackS.o(.text+0x441): In function `ZN12POA_CallbackD2Ev':
d:/Work/CORBA/example/Frank/callbackS.cpp:200: undefined reference to
`_imp___ZN15TAO_ServantBaseD2Ev'
callbackS.o(.text+0x474):d:/Work/CORBA/example/Frank/callbackS.cpp:
200: undefined reference to `_imp___ZN24TAO_Abstract_ServantBaseD2Ev'
callbackS.o(.text+0x4ae):d:/Work/CORBA/example/Frank/callbackS.cpp:
200: undefined reference to `_imp___ZN24TAO_Abstract_ServantBaseD2Ev'
-Josh
More information about the Ace-users
mailing list