프로그램/C++

VS2010 인텔리센스 에러 /MD _AFXDLL

네오류이 2021. 1. 10. 13:03
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
반응형