카테고리 없음

[VS2010] warning MSB8012: TargetPath(.exe) does not match the Linker's OutputFile property value (.exe).

great-artist 2013. 1. 30. 16:25
반응형

이슈

 

3>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(.exe) does not match the Linker's OutputFile property value (.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).

 

General

Target Name              $(ProjectName)

Target Extension        .exe

 

Linker

General

Output File

$(OutDir)$(ProjectName)_D.exe

 

 

 

해결책

 

TargetPath 의 내용은 Target Name와 Target Extension를 구성하여서 (OutDir)$(ProjectName).exe라고 만들었는데 Output File은 (OutDir)$(ProjectName)_D.exe 라고 직접 명시를 해주어서 출력파일을 지칭하는 매크로 값과 실제 출력 파일의 이름이 상이해서 발생하는 문제입니다. 해결방법은 출력파일 쪽에서 직접 출력파일 이름을 지정하지 말고 General 항목에서 정의한 매크로를 사용하면 됩니다.

 

Linker

General

Output File

$(OutDir)$(TargetName)$(TargetExt)

 

 

 

 

반응형