Discussion:
Error in linking step!
(too old to reply)
Sarath
2005-04-11 07:47:45 UTC
Permalink
Hi all,
I am new to COM stuff.
I get the following errors during the linking step in my VC6.0 IDE:

error LNK2001: unresolved external symbol _CLSID_DOMDocument
error LNK2001: unresolved external symbol _CLSID_DOMDocument
error LNK2001: unresolved external symbol _IID_IXMLDOMDocument

My header includes the following code snippet:
#import "msxml4.dll"
using namespace MSXML2;

Few posts on the forum suggest to do this:
#include "msxml.h"

#define CLSID_DOMDocument __uuidof(DOMDocument)
#define IID_IXMLDOMDocument __uuidof(IXMLDOMDocument)

But when I try to use this code, I get the following error:
error C2872: 'DOMDocument' : ambiguous symbol

Pls let me know how to resolve this.
Thanks,
--sarath.
thahura
2005-12-06 05:18:56 UTC
Permalink
Hi,


Even i am encountering the same problem.

configuration.obj : error LNK2001: unresolved external symbol
_CLSID_DOMDocument
measurementThread.obj : error LNK2001: unresolved external symbol
_CLSID_DOMDocument
configuration.obj : error LNK2001: unresolved external symbol
_IID_IXMLDOMDocument
measurementThread.obj : error LNK2001: unresolved external symbol
_IID_IXMLDOMDocument
measurementThread.obj : error LNK2001: unresolved external symbol
_DIID_HTMLDocumentEvents2


any idea about it?

Thanks,
Thahura
*Hi all,
I am new to COM stuff.
error LNK2001: unresolved external symbol _CLSID_DOMDocument
error LNK2001: unresolved external symbol _CLSID_DOMDocument
error LNK2001: unresolved external symbol _IID_IXMLDOMDocument
#import "msxml4.dll"
using namespace MSXML2;
#include "msxml.h"
#define CLSID_DOMDocument __uuidof(DOMDocument)
#define IID_IXMLDOMDocument __uuidof(IXMLDOMDocument)
error C2872: 'DOMDocument' : ambiguous symbol
Pls let me know how to resolve this.
Thanks,
--sarath. *
--
thahura
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------
Loading...