ProjectName.exp :
warning LNK4070: /OUT:ProjectName.dll directive in .EXP differs from output filename "ProjectNameD.dll"; ignoring directive

원인 :
상기 경고는 DLL ProjectSetting 에서 Output file name 을 바꾸면 나타나는 현상입니다.
( ProjectName.dll -> ProjectD.dll )
.def 파일의 내용중에 아래 와 같이 ProjectName.dll 로 되어있어서
.exp 파일과 결과물이 달라서 발생하는 현상입니다.

해결방법 :
ProjectName.def 파일을 하나 복사해서 아래와 같이 수정합니다.
-----------------------------------------------------------------------------------
LIBRARY : ProjectName
----------------------------------------------------------------------------------
항목을
----------------------------------------------------------------------------------
LIBRARY : ProjectNameD
----------------------------------------------------------------------------------
이렇게 수정합니다.

그리고 Project Setting -> Link -> Category:General -> Project Options : /def:ProjectNameD.def
로 수정하시면 됩니다.
Posted by 빨강토끼
,