David Lowndes <da****@mvps.or g> wrote in message news:<h4******* *************** **********@4ax. com>...
I am encountering the following linker error on VC7.
LINK : fatal error LNK1171: unable to load ole32.dll
This error is only encountered for the "Debug" configuration. The project
successfully compiles/links in "Release" configuration.
You probably have a reference to ole32.dll in the debug configuration
of your project's linker settings. Have you checked what's different
in the linker project settings between the release and debug builds?
Dave
Hi,
I have ole32.lib as a inherited value in Linker
Properties>Inpu t>Additional Dependencies for both "Debug" and
"Release" configurations. I did not find ole32.dll in linker settings
for either configuration.
I did a diff of the BuildLog for the Debug and Release configurations.
There was no difference in the Environment Space variables.
In the verbose mode for Linker output I can see the following in
"Release configuration"
Found __IMPORT_DESCRI PTOR_ole32
Referenced in ole32.lib(ole32 .dll)
Referenced in ole32.lib(ole32 .dll)
Referenced in ole32.lib(ole32 .dll)
Loaded ole32.lib(ole32 .dll)
So ole32.lib is loaded successfully in "Release" configuration but is
failing in "Debug" mode for some reason.
I have $(VCInstallDir) PlatformSDK\lib in my Project Options for
directories to search for libraries. So ole32.lib should be accessible
to both configurations.
Any help is appreciated.
Thanks,
Pradnyesh