Programming/MFC

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

_Erato 2006. 5. 26. 20:28
출처 cafryall님의 블로그 | 오슬
원문 http://blog.naver.com/cafryall/9839753



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


프로젝트 빌드시 프로젝트에 필요없는 모듈(lib)이 있게 되는 경우 이 메세지가 발생한다.

위의 경우 SHELL32.dll 을 사용하지 않는다는 의미이므로

Project-Setting-Link-Object/library modules 에서 Sheel32.lib 를 찾아서 지워주면 된다.


MSDN에서 보면

/OPT:REF to eliminate functions and/or data that is never referenced.
"/OPT:REF ==> 참조되지 않는 함수나 데이터 제거 "

라고 나와 있다.