shutle 发表于 2006-10-10 19:29:47

使用stlport的问题

使用stlport4.6,代码中只用到了#include "string"

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../../../ugc/LibShared/SGISTL40/stlport -L../../../ugc/BinD_Linux -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -O0 -g3 -Wall -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -c -o main.o `test -f 'main.cpp' || echo './'`main.cpp
In file included from ../../../ugc/LibShared/SGISTL40/stlport/config/stlcomp.h:54,
from ../../../ugc/LibShared/SGISTL40/stlport/stl/_config.h:74,
from ../../../ugc/LibShared/SGISTL40/stlport/stl/_prolog.h:10,
from ../../../ugc/LibShared/SGISTL40/stlport/iostream.h:21,
from main.cpp:22:
../../../ugc/LibShared/SGISTL40/stlport/config/stl_gcc.h:266:34: warning: "__APPLE__" is not defined
In file included from ../../../ugc/LibShared/SGISTL40/stlport/stl/_alloc.h:68,
from ../../../ugc/LibShared/SGISTL40/stlport/stdexcept:45,
from ../../../ugc/LibShared/SGISTL40/stlport/stl/_ios_base.h:22,
from ../../../ugc/LibShared/SGISTL40/stlport/stl/_ios.h:23,
from ../../../ugc/LibShared/SGISTL40/stlport/stl/_istream.h:27,
from ../../../ugc/LibShared/SGISTL40/stlport/iostream:34,
from ../../../ugc/LibShared/SGISTL40/stlport/iostream.h:29,
from main.cpp:22:
../../../ugc/LibShared/SGISTL40/stlport/stl/_construct.h:57:6: warning: "_MSC_VER" is not defined
In file included from ../../../ugc/LibShared/SGISTL40/stlport/stl/_ios_base.h:22,
from ../../../ugc/LibShared/SGISTL40/stlport/stl/_ios.h:23,
from ../../../ugc/LibShared/SGISTL40/stlport/stl/_istream.h:27,
from ../../../ugc/LibShared/SGISTL40/stlport/iostream:34,
from ../../../ugc/LibShared/SGISTL40/stlport/iostream.h:29,
from main.cpp:22:
../../../ugc/LibShared/SGISTL40/stlport/stdexcept:68: looser throw specifier
for `virtual const char* _STL::__Named_exception::what() const'
/usr/include/c++/3.2.3/exception:57: overriding `virtual const char*
std::exception::what() const throw ()'
../../../ugc/LibShared/SGISTL40/stlport/stdexcept:69: looser throw specifier
for `virtual _STL::__Named_exception::~__Named_exception()'
/usr/include/c++/3.2.3/exception:54: overriding `virtual
std::exception::~exception() throw ()'
../../../ugc/LibShared/SGISTL40/stlport/stdexcept:69: looser throw specifier
for `virtual _STL::__Named_exception::~__Named_exception()'
/usr/include/c++/3.2.3/exception:54: overriding `virtual
std::exception::~exception() throw ()'
../../../ugc/LibShared/SGISTL40/stlport/stdexcept:69: looser throw specifier
for `virtual _STL::__Named_exception::~__Named_exception()'
/usr/include/c++/3.2.3/exception:54: overriding `virtual
std::exception::~exception() throw ()'
../../../ugc/LibShared/SGISTL40/stlport/stdexcept:68: looser throw specifier
for `virtual const char* _STL::__Named_exception::what() const'
/usr/include/c++/3.2.3/exception:57: overriding `virtual const char*
std::exception::what() const throw ()'
main.cpp: In function `int main(int, char**)':
main.cpp:36: warning: unused parameter `int argc'
main.cpp:36: warning: unused parameter `char**argv'
gmake: *** Error 1
gmake: Leaving directory `/home/lsj/Prog/TestUGC/testugc'
gmake: *** Error 1
gmake: Leaving directory `/home/lsj/Prog/TestUGC/testugc'
gmake: *** Error 1
gmake: Leaving directory `/home/lsj/Prog/TestUGC'
gmake: *** Error 2
*** 失败 ***

mozilla 发表于 2006-10-14 22:56:22

gcc 3.2和stlport 4.6好像不兼容吧,要打补丁
页: [1]
查看完整版本: 使用stlport的问题