标题:【共享】使用qt4.1写的一个非常cool的程序
作者:yfy002
日期:2005-12-29 17:12
内容:

下载
http://kde-apps.org/content/show.php?content=33001&PHPSESSID=86827d2fdc2e190414dfa5fe6337f87b
#1 [kytexzy 12-30 21:42]
编译出错:
In file included from src/borderlayout.h:34,
from src/borderlayout.cpp:28:
/usr/include/c++/3.3/bits/stl_iterator.h: In member function `
__gnu_cxx::__normal_iterator
__gnu_cxx::__normal_iterator::operator+(typename
std::iterator_traits::difference_type&) const ':
/usr/include/c++/3.3/bits/stl_vector.h:501: instantiated from `_Tp& std::vector::operator[](unsigned int) '
src/turtleui.h:50: instantiated from here
/usr/include/c++/3.3/bits/stl_iterator.h:631: error: invalid use of undefined
type `struct TurtleCircle'
src/turtleui.h:17: error: forward declaration of `struct TurtleCircle'
make: *** [.obj/-shared-release/borderlayout.o] 错误 1
是不是我编译qt库在configure时没加-stl选项的原因啊?
#2 [kytexzy 01-02 13:11]
重新编译Qt后编译成功,好像需要在configure时加入 -stl 选项。