instantiation of non-template type `<type error>'
/usr/local/include/c++/3.3.2/bits/streambuf.tcc:244: error: explicit
instantiation of non-template `int streamsize'
/usr/local/include/c++/3.3.2/bits/streambuf.tcc:244: error: parse error before
`(' token
/usr/local/include/c++/3.3.2/bits/streambuf.tcc:248: error: `basic_streambuf'
is not a template
/usr/local/include/c++/3.3.2/bits/streambuf.tcc:248: error: explicit
instantiation of non-template type `<type error>'
/usr/local/include/c++/3.3.2/bits/streambuf.tcc:251: error: explicit
instantiation of non-template `int streamsize'
/usr/local/include/c++/3.3.2/bits/streambuf.tcc:251: error: parse error before
`(' token
In file included from /usr/local/include/c++/3.3.2/bits/basic_ios.h:44,
from /usr/local/include/c++/3.3.2/ios:51,
from /usr/local/include/c++/3.3.2/ostream:45,
from /usr/local/include/c++/3.3.2/iostream:45,
from /platform/test.cpp:1:
/usr/local/include/c++/3.3.2/bits/locale_facets.h:65: error: no type `iostate'
in `std::ios_base'
/usr/local/include/c++/3.3.2/bits/locale_facets.h:65: error: parse error before
`&' token
/usr/local/include/c++/3.3.2/bits/locale_facets.h:66: error: template
definition of non-template `void std::__convert_to_v(...)'
/usr/local/include/c++/3.3.2/bits/locale_facets.h:66: confused by earlier errors
, bailing out
快来高手啊,问题还是没有解决.
c的可以编译,c++不行 快点来高手啊
会不会是你的包有问题?把你的操作过程帖一下
vm上装的s10x86 www.sunfreeware.com上载的gcc-3.3.2-sol10-intel-local.gz
/etc/profile改了下
$LD_LIBRARY_PATH=/usr/local/lib
$export LD_LIBRARY_PATH
c的程序可以正常编译 c++的不行 不知道为什么
你是如何编译你的C++程序的?
把你的Makefile或者你的操作步骤贴出来
test.cpp:
#include <iostream>
using namespace std;
int main(int argc, char* argv[])
{
cout << "hello world" << endl;
return 0;
}
gcc test.cpp
QUOTE:
原帖由 cmh_2003 于 2006-6-7 13:06 发表
test.cpp:
#include <iostream>
using namespace std;
int main(int argc, char* argv[])
{
cout << "hello world" << endl;
return 0;
test.cpp:
#include <iostream>
using namespace std;
int main(int argc, char* argv[])
{
cout << "hello world" << endl;
return 0;
会员注册
会员登录
个人空间
发表评论