[ace-users] ACE Build: Linking issues while building ACE on Windows
XP SP2 / Visual Studio 2005 Express
Sarcar, Shourya C (GE Healthcare)
shourya.sarcar at med.ge.com
Mon Sep 10 08:25:30 CDT 2007
ACE VERSION: 5.6
HOST MACHINE and OPERATING SYSTEM:
Windows XP SP2 on Dell D620 laptop running Intel Core 2
1.6Ghz , 2G RAM
If on Windows based OS's, which version of WINSOCK do you
use?:
TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
COMPILER NAME AND VERSION (AND PATCHLEVEL):
Target same as Host
Running Visual Studio 2005 Express Edition,
compiler: Microsoft (R) 32-bit C/C++ Optimizing Compiler Version
14.00.50727.42 for 80x86
THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
specific file, simply state which one]:
----
#define ACE_HAS_STANDARD_CPP_LIBRARY 1
#include "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++)]:
CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features
(used by MPC when you generate your own makefiles):
AREA/CLASS/EXAMPLE AFFECTED:
[What example failed? What module failed to compile?]
DOES THE PROBLEM AFFECT:
COMPILATION?
LINKING?
On Unix systems, did you run make realclean first?
EXECUTION?
OTHER (please specify)?
[Please indicate whether ACE, your application, or both are
affected.]
LINKING is affected. Can compile but cannot link to created ACE
libraries.
SYNOPSIS:
[Brief description of the problem]
During ACE build, LINKING is affected. Can compile but cannot
link to created ACE libraries.
DESCRIPTION:
[Detailed description of problem. Don't just say "<blah>
doesn't work, here's a fix," explain what your program does
to get to the <blah> state. ]
I downloaded the latest ACE 5.6 zip, added "#include
"ace/config-win32.h" in ace/config.h and opened up the ACE_vc8.sln file
in my Visual Studio 2005 Express Edition. When I try to build the ACE
project, the compilation goes fine but I get a bunch of linking errors
(copying first few)
------ Build started: Project: ACE, Configuration: Debug Win32 ------
1>Linking...
1> Creating library ..\lib\ACEd.lib and object ..\lib\ACEd.exp
1>Configuration.obj : error LNK2019: unresolved external symbol
__imp__RegCloseKey at 4 referenced in function "protected: virtual
__thiscall ACE_Section_Key_Win32::~ACE_Section_Key_Win32(void)"
(??1ACE_Section_Key_Win32@@MAE at XZ)
1>Log_Msg_NT_Event_Log.obj : error LNK2001: unresolved external symbol
__imp__RegCloseKey at 4
1>Registry.obj : error LNK2001: unresolved external symbol
__imp__RegCloseKey at 4
1>Configuration.obj : error LNK2019: unresolved external symbol
__imp__RegCreateKeyExA at 36 referenced in function "public: virtual int
__thiscall ACE_Configuration_Win32Registry::open_section(class
ACE_Configuration_Section_Key const &,char const *,int,class
ACE_Configuration_Section_Key &)"
(?open_section at ACE_Configuration_Win32Registry@@UAEHABVACE_Configuration
_Section_Key@@PBDHAAV2@@Z)
1>Registry.obj : error LNK2001: unresolved external symbol
__imp__RegCreateKeyExA at 36
I have "C:\Program Files\Microsoft Platform SDK for Windows Server 2003
R2\Lib" in my %LIB% variable
REPEAT BY:
[What you did to get the error; include test program or session
transcript if at all possible. ]
SAMPLE FIX/WORKAROUND:
[If available ]
--
Shourya
More information about the Ace-users
mailing list