Archived

This topic is now archived and is closed to further replies.

BSXrider

LINK : warning LNK4089: all references to "ADVAPI32.dll" discarded by /OPT:REF

Recommended Posts

LINK : warning LNK4089: all references to "ADVAPI32.dll" discarded by /OPT:REF How can I get rid of this error then? I tried going into settings and unlinking advapi32.lib but then it complains that it needs it! I know I shouldn''t care so long as everything compiles but it''s annoying - seb

Share this post


Link to post
Share on other sites
it simply is having the exe not reference (ie dont require nor loads) that particular dll. this normal is you link to all default libs yet dont use funtions from ceratin ones. another possiblity is that the compiler is staticly comiling all the functions right into the exe (since you may not be calling many). either dont use functions from the library and make sure you dont reference any funtions from it (ie via headers and such). you can also tell the optimizer not to remove references (i think).

Share this post


Link to post
Share on other sites