结果如下,请帮忙分析一下是否是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
/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>试试?