g++编译出错

[复制链接]
查看11 | 回复1 | 2008-7-17 12:53:53 | 显示全部楼层 |阅读模式
#include
using namespace std;
int main()
{

cout::catalog std::messages::open(const std::basic_string, std::allocator >&, const std::locale&, const char*) const’:
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i486-linux-gnu/bits/messages_members.h:62: error: there are no arguments to ‘bindtextdomain’ that depend on a template parameter, so a declaration of ‘bindtextdomain’ must be available
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i486-linux-gnu/bits/messages_members.h:62: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i486-linux-gnu/bits/messages_members.h: In member function ‘virtual typename std::messages::catalog std::messages::do_open(const std::basic_string, std::allocator >&, const std::locale&) const’:
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i486-linux-gnu/bits/messages_members.h:82: error: there are no arguments to ‘textdomain’ that depend on a template parameter, so a declaration of ‘textdomain’ must be available

回复

使用道具 举报

千问 | 2008-7-17 12:53:53 | 显示全部楼层
程序是没有问题的,可能是编译器的原因.可能没有安装完整.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行