Please use the /MD switch for _AFXDLL builds


에러내용
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) //다른옵션 선택후 다시 선택.

 



http://blog.naver.com/PostView.nhn?blogId=crazywlsgur&logNo=70100145542

반응형

'Trunk' 카테고리의 다른 글

Synology DS718+ 구매/개봉기  (0) 2018.11.09
ATNA : Audit Trail and Node Authentication  (0) 2017.01.23
[일본어] 히라가나 가타카나 표  (0) 2017.01.02
[HTTP] MIME Type  (0) 2016.12.26
[DevExpress] Show the Current Row Number  (0) 2016.12.20

+ Recent posts