728x90
반응형
출처 ㅣ http://blog.naver.com/PostView.nhn?blogId=crazywlsgur&logNo=70100145542
에러내용
1
IntelliSense: #error directive: Please use the /MD switch for _AFXDLL builds
c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\afxver_.h 81
코드를 보면..
#if defined(_AFXDLL) && !defined(_DLL)
#error Please use the /MD switch for _AFXDLL builds
#endif
정상인데 비 정상이라고 우기는 경우이다.
이것은
1. Right-click the Project.
2. Go to Config Properties->C/C++-> Code Gen ->. Double-click "Runtime Library" and set to "Multi-threaded Debug DLL (/MDd)" . If this value already appears to be set, make sure it is by selecting it again (it should then appear as bold).
3. Click OK.
프로젝트속성 > c,c++ > code gen > Runtime library-Multi Debug DLL (BOLD) //다른거 선택후 다시 하면 BOLD됨.
끝~!
728x90
반응형
'프로그램 > C++' 카테고리의 다른 글
WM_COPYDATA 사용하기 ( OnCopyData ) (1) | 2021.01.10 |
---|---|
Sleep 을 대신할 수 있는 Wait 함수 (0) | 2021.01.10 |
미리 컴파일된 헤더 사용시 폴더위치가 다른 곳에서 에러 안나고 쓰는 방법 (1) | 2021.01.10 |
[MFC] 유니코드 멀티바이트 UTF-8 문자열 인코딩 변환 모음 (0) | 2021.01.10 |
VC++에서 쓸만한 그리도 추천 (0) | 2021.01.09 |