VC++编译出错,错误代码:error C1189,请各位高手指点一下。
调试信息:ompiling...StdAfx.cppd:\microsoftvisualstudio\vc98\mfc\include\afxver_.h(130):fa...
调试信息:
ompiling...
StdAfx.cpp
d:\microsoft visual studio\vc98\mfc\include\afxver_.h(130) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Debug\StdAfx.sbr': No such file or directory
Error executing bscmake.exe.
For JMicorn checker.exe - 2 error(s), 0 warning(s)
错误地方:
#if defined(_AFXDLL) && !defined(_DLL)
#error Please use the /MD switch for _AFXDLL builds
#endif 展开
ompiling...
StdAfx.cpp
d:\microsoft visual studio\vc98\mfc\include\afxver_.h(130) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Debug\StdAfx.sbr': No such file or directory
Error executing bscmake.exe.
For JMicorn checker.exe - 2 error(s), 0 warning(s)
错误地方:
#if defined(_AFXDLL) && !defined(_DLL)
#error Please use the /MD switch for _AFXDLL builds
#endif 展开
3个回答
展开全部
把.c扩展名改成.cpp就可以了,编译器是依据扩展名来判断是c还是c++语言
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
错误 30 fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d] D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\afx.h 24
出现原因(自己加了个头文件 #include"afx.h")
翻一下我这句话:
添加 #define _AFXDLL 就可以了
出现原因(自己加了个头文件 #include"afx.h")
翻一下我这句话:
添加 #define _AFXDLL 就可以了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询