QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 744|回复: 4

MAKE失败,好心人帮帮忙:(

[复制链接]
发表于 2003-8-12 00:49:11 | 显示全部楼层 |阅读模式
结果如下,请帮忙分析一下是否是GNU版本问题?
[root@dreamsky trilearn_2001_release]# make
g++ -Dlinux -O3 -g -Wall -c -o Connection.o Connection.C
In file included from /usr/include/c++/3.2.2/backward/ostream.h:31,
from Connection.h:47,
from Connection.C:53:
/usr/include/c++/3.2.2/backward/backward_warning.h:32:2: warning: #warning This
file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples
include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning
use -Wno-deprecated.
In file included from Connection.C:54:
Logger.h:109: type specifier omitted for parameter `string'
Logger.h:109: parse error before `)' token
make: *** [Connection.o] Error 1
发表于 2003-8-12 02:01:19 | 显示全部楼层
检查Logger.h文件的第109行,看看右括号附近有没有什么错误~
回复

使用道具 举报

 楼主| 发表于 2003-8-12 21:14:11 | 显示全部楼层
与GCC地版本没有问题么?
该程序在2。9版下可以运行的
可在现在的3。2下就出现上面一堆
回复

使用道具 举报

发表于 2003-8-13 09:47:11 | 显示全部楼层
跟gcc有关,我也碰到过2.96可以编译,但3就出错。
回复

使用道具 举报

发表于 2003-8-17 15:08:31 | 显示全部楼层
/usr/include/c++/3.2.2/backward/backward_warning.h:32:2: warning: #warning This
file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples
include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning
use -Wno-deprecated.
这个好像是建议你换用头部,改用#include <iostream>试试?
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-15 05:53 , Processed in 0.038281 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表