Reputation: 31
Is there a way to change the severity of the LNK2001 log (let say from error to warning), or even avoid this log, when /force:unresolved flag is used at link time ?
Basically, I want to force the generation of a dll (with a undefined symbol, let say "X") and delay the symbol resolution at executable link time (where the executable is linked with the "forced" dll and another one which contains the "X" symbol).
Upvotes: 3
Views: 740
Reputation: 10165
/FORCE:UNRESOLVED is ignored if the entry point symbol is unresolved
So check that your DLL has an entry point.
There is an undocumented option to switch off some linker warnings, but not for errors.
Upvotes: 1