Hello, I am trying to compile under Red Hat Linux using gcc. It works fine with version 3.2.3, but throws the following errors with gcc 3.4.2: -------------------------------------------------------------------------- g++ -fPIC -O3 -c -I. -I../openbabel-1.100.2/src -I../aura -I/usr/java/j2sdk1.4.2_04/include -I/usr/java/j2sdk1.4.2_04/include/linux OBBronKerboschMatcher.cpp In file included from /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../../include/c++/3.4.2/vector:72, from ../openbabel-1.100.2/src/mol.h:29, from ../aura/DistanceUtilities.h:5, from ../aura/OBAttributes.h:5, from ../aura/OBReader.h:7, from OBBronKerboschMatcher.h:3, from OBBronKerboschMatcher.cpp:1: /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../../include/c++/3.4.2/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/local/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../../include/c++/3.4.2/bits/stl_bvector.h:522: error: expected unqualified-id before '(' token /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../../include/c++/3.4.2/bits/stl_bvector.h: In member function `void std::vector<bool, _Alloc>::_M_fill_insert(std::_Bit_iterator, size_t, bool)': /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../../include/c++/3.4.2/bits/stl_bvector.h:823: error: expected unqualified-id before '(' token In file included from /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../../include/c++/3.4.2/vector:75, from ../openbabel-1.100.2/src/mol.h:29, from ../aura/DistanceUtilities.h:5, from ../aura/OBAttributes.h:5, from ../aura/OBReader.h:7, from OBBronKerboschMatcher.h:3, from OBBronKerboschMatcher.cpp:1: /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../../include/c++/3.4.2/bits/vector.tcc: In member function `void std::vector<_Tp, _Alloc>::_M_fill_insert(__gnu_cxx::__normal_iterator<typename _Alloc::pointer, std::vector<_Tp, _Alloc> >, size_t, const _Tp&)': /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../../include/c++/3.4.2/bits/vector.tcc:307: error: expected unqualified-id before '(' token /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../../include/c++/3.4.2/bits/vector.tcc: In member function `void std::vector<_Tp, _Alloc>::_M_range_insert(__gnu_cxx::__normal_iterator<typename _Alloc::pointer, std::vector<_Tp, _Alloc> >, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag)': /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../../include/c++/3.4.2/bits/vector.tcc:384: error: expected unqualified-id before '(' token In file included from /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../../include/c++/3.4.2/deque:71, from ../openbabel-1.100.2/src/ring.h:23, from ../openbabel-1.100.2/src/mol.h:49, from ../aura/DistanceUtilities.h:5, from ../aura/OBAttributes.h:5, from ../aura/OBReader.h:7, from OBBronKerboschMatcher.h:3, from OBBronKerboschMatcher.cpp:1: /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../../include/c++/3.4.2/bits/stl_deque.h: In member function `void std::_Deque_base<_Tp, _Alloc>::_M_initialize_map(size_t)': /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../../include/c++/3.4.2/bits/stl_deque.h:446: error: expected unqualified-id before '(' token In file included from /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../../include/c++/3.4.2/deque:74, from ../openbabel-1.100.2/src/ring.h:23, from ../openbabel-1.100.2/src/mol.h:49, from ../aura/DistanceUtilities.h:5, from ../aura/OBAttributes.h:5, from ../aura/OBReader.h:7, from OBBronKerboschMatcher.h:3, from OBBronKerboschMatcher.cpp:1: /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../../include/c++/3.4.2/bits/deque.tcc: In member function `void std::deque<_Tp, _Alloc>::_M_reallocate_map(size_t, bool)': /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../../include/c++/3.4.2/bits/deque.tcc:699: error: expected unqualified-id before '(' token make: *** [OBBronKerboschMatcher.o] Error 1 -------------------------------------------------------------------------- mol.h line 29 contains #include <vector> ring.h line 23 contains #include <deque> The strange thing is that if I compile just OBReader.cpp, it works fine! OpenBabel has been configured with gcc3.4.2 previously. Any ideas? Thanks. Stefan