473,385 Members | 1,925 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Linker error on VC 7 : unable to load ole32.dll

Hi,

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.

Any help is welcome.

Thanks,
Pradnyesh Rane
Nov 17 '05 #1
5 6029
>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
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 17 '05 #2
David Lowndes <da****@mvps.org> 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>Input>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_DESCRIPTOR_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
Nov 17 '05 #3
>I have ole32.lib as a inherited value in Linker
Properties>Input>Additional Dependencies for both "Debug" and
"Release" configurations. I did not find ole32.dll in linker settings
for either configuration.


If both release and debug linker settings are consistent, I don't know
why it's happening. Have you tried removing the explicit references
and seeing what happens then?

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 17 '05 #4
David Lowndes <da****@mvps.org> wrote in message news:<6m********************************@4ax.com>. ..
I have ole32.lib as a inherited value in Linker
Properties>Input>Additional Dependencies for both "Debug" and
"Release" configurations. I did not find ole32.dll in linker settings
for either configuration.


If both release and debug linker settings are consistent, I don't know
why it's happening. Have you tried removing the explicit references
and seeing what happens then?

Dave


Hi,

I emptied the contents of C:\Documents and Settings\<user>\Local
Settings\Application Data\Microsoft\VisualStudio

It started linking correctly in "Debug" configuration after that. I
still have no idea what went wrong or even why it started linking
correctly again.

Thanks Dave for your help.

Regards,
Pradnyesh
Nov 17 '05 #5
>I emptied the contents of C:\Documents and Settings\<user>\Local
Settings\Application Data\Microsoft\VisualStudio

It started linking correctly in "Debug" configuration after that. I
still have no idea what went wrong or even why it started linking
correctly again.


Me neither :(

Merry Christmas
Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jagdeesh | last post by:
Hai Colleagues, I am using Tomcat 4.1.24 and JDK 1.4.0_03 in my winXP machine. I've transferred a set of folders(containing jsp files) into tomcat's webapps directory(to /webapps/bob ,...
3
by: StephenRichter | last post by:
I have installed the trial of db2 enterprise server on my w2k PC. Have also installed fix pack 8 of that product. I am using it to connect from an asp.net web page to an IBM as400. the 400 is...
1
by: Tim Rogers | last post by:
For some reason, when I compile my MC++ app now I get this error during the link phase. The file DOES exist and is in the proper place in the path. The only difference between when I could link...
1
by: Tim Rogers | last post by:
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...
0
by: Martin | last post by:
When I convert a program from VC6 to VC7 I get the following linker error: CVTRES : fatal error CVT1100: duplicate resource. type:STRING, name:1686, language:0x0409 LINK : fatal error LNK1123:...
0
by: Arild Fines | last post by:
I have a DLL that relies on the OpenSSL library, which comes in two dlls: libeay32.dll and ssleay32.dll. Since a lot of the users of my DLL never use SSL at all, I was hoping I could delay-load...
2
by: thorax | last post by:
I'm having problems running a release build of an application. The application is a native C++ .NET 2003 MFC application which links to a number of other DLLs, one of which is mixed (SLGSE.dll)...
0
by: HKSHK | last post by:
This list compares the error codes used in VB.NET 2003 with those used in VB6. Error Codes: ============ 3: This Error number is obsolete and no longer used. (Formerly: Return without GoSub)...
0
by: Ehsan68 | last post by:
Hello my problem is "Linker Error: Undefined symbol _cga_driver_far in module maze.c " then Go to Options =>Linker =>Libraries This will display a box showing Container Class Turbo...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.