• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 474
  • Last Modified:

Where does this warning LNK4089 come from?

I mostly used VC++6 to program my main projects. I have the habit of eliminating not only errors (of course) but also any warning after the compilation. However lately I found several compilations that gave the followinf warning:
LINK : warning LNK4089: all references to "OLEPRO32.DLL" discarded by /OPT:REF
I tried to find the root cause of this warning but couldn't see anything. I wonder where does that come from? I hope some experts would give some suggestions.
0
Volga
Asked:
Volga
  • 2
  • 2
2 Solutions
 
Infinity08Commented:
This just means that the linker has optimized out the OLEPRO32.DLL library ... Your code is apparently not using this library, although you did add it to the project linker options.

So, either remove that DLL from the linker options, or ignore the warning ...
0
 
VolgaAuthor Commented:
Hellp Infinity,
Thanx for the advice. However  couldn't find anywhere in the projects settings where that olepro32.dll is. This is a new project and I'm sure I never added that olepro32.dll either.
Please can you let me know how to remove that dll.
0
 
Infinity08Commented:
You probably created a GUI by adding components to it using the VC++ graphical interface ? If so, then you probably added a component that has that dependency ... which was subsequently optimized out by the linker.

I wouldn't worry about it, unless you notice that your application doesn't behave the way it should because of this.
0
 
itsmeandnobodyelseCommented:
>>>> However  couldn't find anywhere in the projects settings where that olepro32.dll is

Goto Project-Settings-Link page and copy all linker settings of the "Project Options" edit box to the clipboard. Output the contents to an empty text window and search for "olepro32.lib". If you find it you might remove it by choosing the "Input" category in the Link tab and editing the "Object/libraries modules" edit field. If you don't find it, ignore the message as Infinity already told you.

Olepro32.lib was needed for Active-X controls added in the resource editor.

Regards, Alex
0
 
VolgaAuthor Commented:
Well I still can't get rid of that stupid warning. Just bothered me symbollically.
Thankx anyway for advice from both of you. So I'm going to split the points for you two.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now