阅 读 文 章

solaris10x86下gcc的安装

[来源:网上转载 (http://bbs.chinaunix.net) | 作者:网友() | 时间:2007-06-23 | 浏览: 人次 ]


   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;
TAG标签 : 安装 /usr/local/include/c error: from error before

最新评论 共有1位网友发表了评论

发表评论

评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名:(注册)
密码:
验证码:
匿名发表
网站地图友情连接交流论坛网站投稿广告服务联系我们留言本站长统计
Some rights reserved: www.newhtm.com, 鄂ICP备07010232号 E-mail:chinakafei@live.com,QQ:552766
中国咖啡技术网(Chmhome):国外编程技术书籍,中文编程手册,经典编程文章,交流技术,技术软件下载,计算机论文,毕业论文.