HELP!! - LNK1171 error - unable to load ole32.dll

  • Thread starter Thread starter Tim Rogers
  • Start date Start date
T

Tim Rogers

For some unknown reason, when I compile my MC++ app now, I get this error
during the
link phase. Apparently VS .NET needs ole32.dll to link

The file DOES exist and is in the proper place in the path. The only
difference between when I could link successfully and now that I can't is
that we've changed our project directory structure somewhat. My project is
a managed wrapper for an unmanaged C++ API.

Here is the information I know thus far:

1) This error only occurs during DEBUG builds.
2) Currently, my project links to static libraries (some our code, some 3rd
party - ACE & open SSL in particular). If I change the project to use the
DLL equivalents, then the error goes away.

Any ideas out there?

Thanks,

Tim Rogers
 
It is the linker (link.exe) itself that relies on ole32.dll, which is
supposed to be in %windir%\system32. You should make sure that the path
settings for your project still point to this.
 
Back
Top