vs2003中const 和 extern 的调用以前constinti4extrenconstinti//OK2003中无法编译通过,哪位前辈有解决
vs2003中const 和 extern 的调用
以前
const int i=4;
extren const int i;//OK
2003中无法编译通过,哪位前辈有解决方法?
[解决办法]
变量没有名变换问题,所以对变量使用extern "C "是一个没有C++标准确认的行为。
vs2003中const 和 extern 的调用
以前
const int i=4;
extren const int i;//OK
2003中无法编译通过,哪位前辈有解决方法?
[解决办法]
变量没有名变换问题,所以对变量使用extern "C "是一个没有C++标准确认的行为。