• 6279阅读
  • 2回复

【共享】使用qt4.1写的一个非常cool的程序 [复制链接]

上一主题 下一主题
离线yfy002
 

只看楼主 倒序阅读 楼主  发表于: 2005-12-29
我渴望平静,风却给了我涟漪
我的blog:
http://sungaoyong.cublog.cn
离线kytexzy

只看该作者 1楼 发表于: 2005-12-30
编译出错:
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<_Iterator, _Container>
  __gnu_cxx::__normal_iterator<_Iterator, _Container>::operator+(typename
  std::iterator_traits<_Iterator>::difference_type&) const [with _Iterator =
  TurtleCircle*, _Container = std::vector<TurtleCircle,
  std::allocator<TurtleCircle> >]':
/usr/include/c++/3.3/bits/stl_vector.h:501:   instantiated from `_Tp& std::vector<_Tp, _Alloc>::operator[](unsigned int) [with _Tp = TurtleCircle, _Alloc = std::allocator<TurtleCircle>]'
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选项的原因啊?
try to find forgiveness for yourself and forgive others
离线kytexzy

只看该作者 2楼 发表于: 2006-01-02
重新编译Qt后编译成功,好像需要在configure时加入 -stl 选项。
try to find forgiveness for yourself and forgive others
快速回复
限100 字节
 
上一个 下一个