How can I get rid of linker warning: "LINK : warning LNK4089: all references to 'OLEAUT32.dll' discarded by /OPT:REF" ???
-
Hello, When I build the Release configuration of my MFC application I get the following linker warning:
LINK : warning LNK4089: all references to 'OLEAUT32.dll' discarded by /OPT:REF
How can I get rid of this linker warning? (without the use of
/IGNORE:4089
) Hiding the warning via/IGNORE:4089
in the project settings is not the solution I'm looking for. My guess is that the problem comes from the 7.1 MFC libraries I use... is this true? I'm compiling with Visual Studio 2003 (7.1) Thanks in advance.-- **Ricky Marek** (_AKA: rbid_)
-- "Things are only impossible until they are not" --- Jean-Luc Picard My articles -
Hello, When I build the Release configuration of my MFC application I get the following linker warning:
LINK : warning LNK4089: all references to 'OLEAUT32.dll' discarded by /OPT:REF
How can I get rid of this linker warning? (without the use of
/IGNORE:4089
) Hiding the warning via/IGNORE:4089
in the project settings is not the solution I'm looking for. My guess is that the problem comes from the 7.1 MFC libraries I use... is this true? I'm compiling with Visual Studio 2003 (7.1) Thanks in advance.-- **Ricky Marek** (_AKA: rbid_)
-- "Things are only impossible until they are not" --- Jean-Luc Picard My articles#pragma comment(ignore: 4089)
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
-
#pragma comment(ignore: 4089)
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
Question:
Can we use this
#pragma comment(ignore 4089)
for the warning related to "OLEAUT32.dll" only?For what I understand, the use of the
#pragma
is the same as hiding the warning via/IGNORE:4089
in the project settings, which is not the solution I'm looking for. Does anybody has another suggestion? Thanks in advance-- **Ricky Marek** (_AKA: rbid_)
-- "Things are only impossible until they are not" --- Jean-Luc Picard My articles -
Question:
Can we use this
#pragma comment(ignore 4089)
for the warning related to "OLEAUT32.dll" only?For what I understand, the use of the
#pragma
is the same as hiding the warning via/IGNORE:4089
in the project settings, which is not the solution I'm looking for. Does anybody has another suggestion? Thanks in advance-- **Ricky Marek** (_AKA: rbid_)
-- "Things are only impossible until they are not" --- Jean-Luc Picard My articlesrbid wrote:
Question: Can we use this #pragma comment(ignore 4089) for the warning related to "OLEAUT32.dll" only?
no.
rbid wrote:
or what I understand, the use of the #pragma is the same as hiding the warning via /IGNORE:4089 in the project settings
exactly.
rbid wrote:
Does anybody has another suggestion?
there's no other way. either you hide every 4089 warnings, or you show them all. but hey, it's only a
warning
, why do you bother that much ?[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]