Link to home
Start Free TrialLog in
Avatar of Volga
Volga

asked on

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.
Avatar of Infinity08
Infinity08
Flag of Belgium image

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 ...
Avatar of Volga
Volga

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Infinity08
Infinity08
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Volga

ASKER

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.