You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Vincent Finn <vi...@automsoft.com> on 2003/08/27 13:39:16 UTC

Strange compile error

Hi,

I have a strange problem compiling a project using xsec

I am on WinXP, VC6 SP5, xerces 2.2, openssl 0.9.7b, xsec 1.0
I have a COM dll which currently uses xerces to create an XML file
I am adding xsec in to sign the file

when I add the line
#include <xsec/framework/XSECProvider.hpp>
I get errors (the same is true for other xsec includes)

The strange part is that I have code in a test (console) project which
parses an XML file and signs it and this works, but not in my real project
also I get very different errors in debug and release

the only other point I can think of worth mentioning is that I do have a
global using statement
using namespace XERCES_CPP_NAMESPACE;

Has anyone seen this or have any idea what it might be?

	Thanks, Vin


The errors are as follows
in DEBUG
c:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14):
fatal error C1189: #error :  WINDOWS.H already included.  MFC apps must not
#include <windows.h>

in RELEASE
C:\LIBS\XML-SECURITY-C-1.0.0\INCLUDE\xsec/utils/XSECSafeBufferFormatter.hpp(
108): warning C4100: 'formatter': unreferenced formal parameter
C:\LIBS\XML-SECURITY-C-1.0.0\INCLUDE\xsec/dsig/DSIGTransform.hpp(79): error
C2874: using-declaration causes a multiple declaration of 'DOMDocument'
    C:\LIBS\XERCES-C-SRC2_2_0\SRC\xercesc/dom/DOMDocument.hpp(102): see
declaration of 'DOMDocument'
C:\LIBS\XML-SECURITY-C-1.0.0\INCLUDE\xsec/dsig/DSIGSignedInfo.hpp(82): error
C2874: using-declaration causes a multiple declaration of 'DOMDocument'
    C:\LIBS\XERCES-C-SRC2_2_0\SRC\xercesc/dom/DOMDocument.hpp(102): see
declaration of 'DOMDocument'

-----------------------------------------------------------------------
vincent.finn@automsoft.com
-----------------------------------------------------------------------
INTEL INSIDE: The worlds most widely used warning label.
----------------------------------------------------------------------