상세 컨텐츠

본문 제목

MFC 빌드 에러 ('/ZI' and '/Gy-' command-line options are incompatible)

카테고리 없음

by 힐둔 2022. 8. 12. 13:00

본문

CodeProject나 여타 사이트에서 다른 사람의 소스를 가져와서 실행할 때 아래와 같은 에러로 빌드가 되지 않는 경우가 있다. 처음에는 안된나 보다 하다가 찾아보니 설정에서 Debug Information을 변경 하면 이를 방지할 수 있다. 간단히 타인이 만든 프로그램을 실행할 때 아주 유용하다.

 

 

Build started...
1>------ Build started: Project: ListBoxTutorial, Configuration: Debug Win32 ------
1>cl : command line warning D9035: option 'Gm' has been deprecated and will be removed in a future release
1>cl : command line error D8016: '/ZI' and '/Gy-' command-line options are incompatible
1>Done building project "ListBoxTutorial.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

 

'/ZI' and '/Gy-' command-line options are incompatible
'/ZI' and '/Gy-' command-line options are incompatible

 

변경후

 

 

댓글 영역