보관함

Library 생성시 Debug와 Release를 나누어 빌드

Debug에 구성속성 -> 일반 -> 대상이름을 $(ProjectName) 에서 $(ProjectName)D 로 변경

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
로 수정하시면 됩니다.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

  

  

  

이 사이트는 스팸을 줄이는 아키스밋을 사용합니다. 댓글이 어떻게 처리되는지 알아보십시오.