Hi Ben,
Xerces 2.x required the MFC headers to compile the resources, but the
Express edition of the Visual Studio tools doesn't have it. You should
be able to workaround the problem by replacing the #include "winres.h" with
#include "winver.h"
#include "winnt.h"
Alberto
Ben Heavner wrote:
Hello,
I'm not sure if this is the best forum to direct this question to -
please let me know if there is a better place to ask.
I'm fairly inexperienced with Microsoft development tools, but am
attempting to build Xerces 2.8.0 with Microsoft Visual C++ Express
2008 and the Windows SDK for Windows Server 2008 and .NET Framework
3.5 on a Windows XP box.
My attempt at building Xerces 2.8.0 has failed, and I'm not sure if
the problem is a mistake I've made, or an issue with the code.
I attempted to follow the instructions at
http://xerces.apache.org/xerces-c/build-winunix-2.html#WinNT. I used
Projects\Win32\VC8\xerces-all\xerces-all.sln which MSVC automatically
translated to MSVC9.
I attempted to build the multi-threaded debug dll, but resource
compilation failed with the following error:
1>Compiling resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>..\..\..\..\..\src\xercesc\util\Platforms\Win32\Version.rc(10) :
fatal error RC1015: cannot open include file 'winres.h'.
1>Build log was saved at "file://c:\Documents and
Settings\bdh32\Desktop\libsbml-2.3.5\xerces-c-src_2_8_0\Build\Win32\VC8\Debug\obj\BuildLog.htm"
1>XercesLib - 1 error(s), 9 warning(s)
I have found winres.h in the \Projects\Win32\BCC.551 directory, but
I'm using the Projects\Win32\VC8 directory, so suspect that is not in
the path. When I copied it to src\xercesc\util\Platforms\Win32, I got
other errors.
Are there other changes I need to make to my build environment to be
able to make a xerces 2.8.0 .dll?
Thanks very much!
Ben Heavner