Visual studio 2010 C++ project link failure: fatal error LINK1171: unable to load ole32.dll

120 views Asked by At

I'm trying to build a VC++ project. It was working fine without errors but after adding some classes which call .Net Framework dlls by below directives:

#using "mscorlib.dll"
#using #System.dll"
#using "System.Data.dll"
#using "System.Xml.dll"

And setting Use Managed Extensions to Yes, the project does not build successfully and reports:

fatal error LINK1171: unable to load ole32.dll

during the link process.

I never used ole32.dll and compiler does not show where does it need this dll.

Do you have any idea how to resolve this issue?

0

There are 0 answers