LNK4089: all references to "SHELL32.dll" discarded by /OPT
Posted on 2008. 6. 3. 11:42
Filed Under Visual C++
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 ==> 참조되지 않는 함수나 데이터 제거 "
라고 나와 있다
반응형