You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Matthew <ee...@hotmail.com> on 2006/12/24 20:24:24 UTC

Problem building Xerces 2.7.0

Hi all,

This is my first posting, so apologies if this topic has been posted before;
I did search but didn't find anything specific to my problem.

I'm trying to build Xerces 2.7.0 without the depracated DOM's on WinXP
32-bit, using borland 5.5 C++ compiler; I've followed the instructions but I
get the following error:


       C:\Borland\bcc55\bin\..\BIN\brcc32 
-I..\..\..\..\..\src;..\..\..\..\..\
src\xercesc\dom;..\..\..\..\..\src\xercesc\framework;..\..\..\..\..\src\xercesc\
framework\psvi;..\..\..\..\..\src\xercesc\internal;..\..\..\..\..\src\xercesc\pa
rsers;..\..\..\..\..\src\xercesc\sax;..\..\..\..\..\src\xercesc\sax2;..\..\..\..
\..\src\xercesc\util;..\..\..\..\..\src\xercesc\util\MsgLoaders\Win32;..\..\..\.
.\..\src\xercesc\util\NetAccessors\WinSock;..\..\..\..\..\src\xercesc\util\Platf
orms\Win32;..\..\..\..\..\src\xercesc\util\regx;..\..\..\..\..\src\xercesc\util\
Transcoders\Win32;..\..\..\..\..\src\xercesc\validators\common;..\..\..\..\..\sr
c\xercesc\validators\datatype;..\..\..\..\..\src\xercesc\validators\DTD;..\..\..
\..\..\src\xercesc\validators\schema;..\..\..\..\..\src\xercesc\validators\schem
a\identity;
-D_DEBUG;PLATFORM_WIN32;_CRTDBG_MAP_ALLOC;PROJ_XMLPARSER;PROJ_XMLUTI
L;PROJ_PARSERS;PROJ_SAX4C;PROJ_SAX2;PROJ_DOM;PROJ_VALIDATORS;XML_SINGLEDLL;XML_U
SE_WIN32_TRANSCODER;XML_USE_INMEM_MESSAGELOADER;XML_USE_NETACCESSOR_WINSOCK;XERC
ES_NO_ASM;NO_STRICT;_NO_VCL;_RTLDLL
-fo..\..\..\..\..\Build\Win32\BCC.551\obj\Ve
rsion.res ..\..\..\..\..\src\xercesc\util\Platforms\Win32\Version.rc
Borland Resource Compiler  Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation.  All rights reserved.

Error Version.rc 10 11: Cannot open file: winres.h

** error 20018 ** deleting
..\..\..\..\..\Build\Win32\BCC.551\obj\Version.res

** error 1 ** deleting XercesLib

C:\xerces-c-src_2_7_0\Projects\Win32\BCC.551\Xerces-all>



All the the .obj files are built but there are no .exe files for the samples
and the XercesLib.dll does not exist. I think there is a problem, please
help.

Regards,

Matthew 
-- 
View this message in context: http://www.nabble.com/Problem-building-Xerces-2.7.0-tf2877769.html#a8043017
Sent from the Xerces - C - Users mailing list archive at Nabble.com.


Re: Problem building Xerces 2.7.0

Posted by Vitaly Prapirny <ma...@mebius.net>.
Hi,
Matthew wrote:
> Error Version.rc 10 11: Cannot open file: winres.h

Please rename afxres.h to winres.h in XercesLib project directory and
all should be find.

Good luck!
	Vitaly

Re: Problem building Xerces 2.7.0

Posted by Vitaly Prapirny <ma...@mebius.net>.
Alberto Massari wrote:
> Actually, the Borland build doesn't use the resource message loader, so 
> you can safely remove the .res from the makefile.
Then he miss those pretty looking VERSIONINFO in dll :)

Good luck !
	Vitaly

Re: Problem building Xerces 2.7.0

Posted by Alberto Massari <am...@datadirect.com>.
At 11.48 24/12/2006 -0800, David Bertoni wrote:
>Matthew wrote:
>>Hi all,
>>This is my first posting, so apologies if this topic has been posted before;
>>I did search but didn't find anything specific to my problem.
>>I'm trying to build Xerces 2.7.0 without the depracated DOM's on WinXP
>>32-bit, using borland 5.5 C++ compiler; I've followed the instructions but I
>>get the following error:
>
>...
>
>>Borland Resource Compiler  Version 5.40
>>Copyright (c) 1990, 1999 Inprise Corporation.  All rights reserved.
>>Error Version.rc 10 11: Cannot open file: winres.h
>>** error 20018 ** deleting
>>..\..\..\..\..\Build\Win32\BCC.551\obj\Version.res
>>** error 1 ** deleting XercesLib
>>C:\xerces-c-src_2_7_0\Projects\Win32\BCC.551\Xerces-all>
>
>I suspect Borland's free compiler ship without the necessary Windows 
>header files to compile the resources.  You'll need to remove the 
>resource files from the build, or get a version of the compiler that 
>has the Windows header files with it.  This can be tricky, because 
>the error messages on Windows are loaded through the resource file, 
>so you'll need to change the preprocessor macro 
>XML_USE_WIN32_MSGLOADER to XML_USE_INMEM_MESSAGELOADER in the 
>XercesLib project.

Actually, the Borland build doesn't use the resource message loader, 
so you can safely remove the .res from the makefile.

Alberto 


Re: Problem building Xerces 2.7.0

Posted by David Bertoni <db...@apache.org>.
Matthew wrote:
> Hi all,
> 
> This is my first posting, so apologies if this topic has been posted before;
> I did search but didn't find anything specific to my problem.
> 
> I'm trying to build Xerces 2.7.0 without the depracated DOM's on WinXP
> 32-bit, using borland 5.5 C++ compiler; I've followed the instructions but I
> get the following error:
> 

...

> Borland Resource Compiler  Version 5.40
> Copyright (c) 1990, 1999 Inprise Corporation.  All rights reserved.
> 
> Error Version.rc 10 11: Cannot open file: winres.h
> 
> ** error 20018 ** deleting
> ..\..\..\..\..\Build\Win32\BCC.551\obj\Version.res
> 
> ** error 1 ** deleting XercesLib
> 
> C:\xerces-c-src_2_7_0\Projects\Win32\BCC.551\Xerces-all>
> 

I suspect Borland's free compiler ship without the necessary Windows header 
files to compile the resources.  You'll need to remove the resource files 
from the build, or get a version of the compiler that has the Windows 
header files with it.  This can be tricky, because the error messages on 
Windows are loaded through the resource file, so you'll need to change the 
preprocessor macro XML_USE_WIN32_MSGLOADER to XML_USE_INMEM_MESSAGELOADER 
in the XercesLib project.

Dave