473,738 Members | 3,636 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6049
>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.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
Nov 17 '05 #3
>I have ole32.lib as a inherited value in Linker
Properties>Inp ut>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.or g> wrote in message news:<6m******* *************** **********@4ax. com>...
I have ole32.lib as a inherited value in Linker
Properties>Inp ut>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\Applic ation 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\Appli cation 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
3684
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 , /webapps/sue) and i have added the folders bob, sue in my server.xml(in the context path). When i am trying to run jsp files from my browser, it works fine. But, the following jsp files reports some exceptions which is quite hard to understand. Here is...
3
15528
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 at v5r1. >From the db2 command line shell I am able to connect to the as400 database. The error I am getting is:
1
2352
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 successfully and now that I can't is an upgrade in a 3rd party static library (ACE) that my project is linking to. (My project is a managed wrapper for an unmanaged C++ API.) I assume this new library could be causing the problem, but I have NO...
1
1934
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 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...
0
3341
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: failure during conversion to COFF: file invalid or corrupt Duplicate resource...no problem! Except that I cannot find that value anywhere!! No such string resource
0
1590
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 these libraries. I added /delayload:"libeay32.dll" and /delayload:"ssleay32.dll" to the linker command line(well, I added it in the IDE, but whatever), then tried to rebuild my DLL. I then get this linker error : libneonD.lib(SSLEAY32.dll) : error...
2
1993
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) (VB.NET/C++). Most of the DLLS are statically linked to the main exe (directly or indirectly) but a few are dynamically linked at runtime. When I try and run the app, it gets "An unhandled non- continuable exception was thrown during process...
0
23504
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) 5: Procedure call or argument is not valid. 6: Overflow. 7: Out of memory.
0
3481
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 Version
0
8969
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8788
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9476
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9335
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9263
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8210
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2745
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.