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

BSXrider    122
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
BSXrider    122
Well you know what I mean. I''d still like to know what causes it and if there''s a proper way of resolving it? Just got rid of my 122 other warnings :D

- seb

Share this post


Link to post
Share on other sites
a person    118
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