c和c++混编出错 D8045:怎么解决 出错详细
D8045: cannot compile C file 'bncore.c' with the /clr option
bncore.c文件内容
#include "tommath.h"
#ifdef BNCORE_C
int KARATSUBA_MUL_CUTOFF = 80;
int KARATSUBA_SQR_CUTOFF = 120;
int TOOM_MUL_CUTOFF = 350;
int TOOM_SQR_CUTOFF = 400;
#endif
在cpp文件中已经加入
extern "C" {
#include "tommath.h"
}
有别处说设置工程属性为no common language run time没用
分享到:
------解决方案-------------------- 关闭掉common language run time
不要使用.net framework
不要使用“托管c++” ------解决方案-------------------- 他那个 Form1 明显的是托管窗口 ------解决方案--------------------