[ace-users] ACE Build: Linking issues while building ACE on Windows XP SP2 / Visual Studio 2005 Express

Adam Mitz mitza at ociweb.com
Mon Sep 10 08:43:23 CDT 2007


Sarcar, Shourya C (GE Healthcare) wrote:
>  
>
> ACE VERSION: 5.6
>
>
> Windows XP SP2 on Dell D620 laptop running Intel Core 2
>
> Running Visual Studio 2005 Express Edition, 
>
> compiler: Microsoft (R) 32-bit C/C++ Optimizing Compiler Version
>
> 14.00.50727.42 for 80x86
>
>  
>   

You should get SP1.  This is the pre-service-pack version number.

>
> During ACE build, LINKING is affected. Can compile but cannot
>
> link to created ACE libraries.
>
>   

Actually from reading your description below you can't create the ACE 
library.

> DESCRIPTION:
>
>
> 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
>
>  

Is this path visible in the "library directories" list under tools -> 
options -> environment -> projects and solutions -> VC++ directories -> 
library files?  If you're setting the LIB variable in a command prompt 
window, try starting visual studio from that command prompt with 
"vcexpress /useenv".

Thanks,
Adam Mitz
Software Engineer
Object Computing, Inc.




More information about the Ace-users mailing list