If you create a new MFC based project, using MFC as DLL, and compile the release build, you end up getting following error:

LINK : warning LNK4089: all references to 'OLEAUT32.dll' discarded by /OPT:REF


Is there a way to get rid of the warning ? I've tried adding OLEAUT32.lib to the 'Ignore specific library' linker settings, but then you end up getting another error (giving the impression that OLEAUT32.DLL is needed, although it isn't).

mfcs71.lib(stdafx.obj) : error LNK2019: unresolved external symbol __imp__SysFreeString@4 referenced in function "public: __thiscall ATL::CComBSTR::~CComBSTR(void)" (??1CComBSTR@ATL@@QAE@XZ)


I realise "it's just a warning". But I really want to get rid of it.