QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1602|回复: 1

使用stlport的问题

[复制链接]
发表于 2006-10-10 19:29:47 | 显示全部楼层 |阅读模式
使用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[3]: *** [main.o] Error 1
gmake[3]: Leaving directory `/home/lsj/Prog/TestUGC/testugc'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/home/lsj/Prog/TestUGC/testugc'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/lsj/Prog/TestUGC'
gmake: *** [all] Error 2
*** 失败 ***
发表于 2006-10-14 22:56:22 | 显示全部楼层
gcc 3.2和stlport 4.6好像不兼容吧,要打补丁
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-5-4 01:40 , Processed in 0.080114 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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