PDA

View Full Version : stl_vector.h problem when compiliing with Mac environement.



hickscorp
16th June 2010, 09:56
Hello :)

i have been writing an application which i'm now trying to compile with my Mac. All developement files are present including GCC and the 4.6.2 version of Qt OpenSource. i'm using Qt Creator to do the work.

In one of my files, i include QGraphicsScene, but there is this error:

In file included from /usr/include/c++/4.2.1/vector:71,
from /Library/Frameworks/QtCore.framework/Headers/qvector.h:52,
from /Library/Frameworks/QtGui.framework/Headers/qbrush.h:47,
from /Library/Frameworks/QtGui.framework/Versions/4/Headers/qgraphicsscene.h:48,
from /Library/Frameworks/QtGui.framework/Versions/4/Headers/QGraphicsScene:1,
[My files here...]
/usr/include/c++/4.2.1/bits/stl_bvector.h: In member function 'void std::vector<bool, _Alloc>::_M_fill_insert(std::_Bit_iterator, size_t, bool)':
/usr/include/c++/4.2.1/bits/stl_bvector.h:916: error: expected unqualified-id before '(' token
/usr/include/c++/4.2.1/bits/stl_bvector.h: In member function 'void std::vector<bool, _Alloc>::_M_insert_range(std::_Bit_iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag)':
/usr/include/c++/4.2.1/bits/stl_bvector.h:961: error: expected unqualified-id before '(' token
In file included from /usr/include/c++/4.2.1/vector:74,
from /Library/Frameworks/QtCore.framework/Headers/qvector.h:52,
from /Library/Frameworks/QtGui.framework/Headers/qbrush.h:47,
from /Library/Frameworks/QtGui.framework/Versions/4/Headers/qgraphicsscene.h:48,
from /Library/Frameworks/QtGui.framework/Versions/4/Headers/QGraphicsScene:1,
[My files here...]
/usr/include/c++/4.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_fill_insert(__gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >, size_t, const _Tp&)':
/usr/include/c++/4.2.1/bits/vector.tcc:350: error: expected unqualified-id before '(' token
/usr/include/c++/4.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_range_insert(__gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag)':
/usr/include/c++/4.2.1/bits/vector.tcc:453: error: expected unqualified-id before '(' token
make[1]: *** [debug/REACore.o] Error 1

Can anyone help me with that please?
Thanks,
Pierre.