Abd*_*lil 1 c++ gcc
我有redhat与gcc 4.1.1我编译为"gcc test.c"并给出以下错误
错误:预期'=',',',';' ','令牌之前的'smsm'或'__ attribute__'
"test.c"中的代码如下
template <typename T> class A { public: T foo; };
ken*_*ytm 6
编译g++和/或重命名您的文件test.cpp.
g++
test.cpp
如果您使用编译,gcc test.c那么您的文件将被假定为C文件.C中没有模板.
gcc test.c
归档时间:
15 年,10 月 前
查看次数:
138 次
最近记录: