I'm having issues including <string> in a plugin of mine. When included, I get the following compilation errors:
Code:
In file included from /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.4.3/string:53,
from IDatabase.h:14,
from IDatabase.cpp:12:
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/basic_string.h: In member function `int std::basic_string<_CharT, _Traits, _Alloc>::compare(const std::basic_string<_CharT, _Traits, _Alloc>&) const':
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/basic_string.h:1862: error: expected unqualified-id before '(' token
In file included from /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.4.3/string:57,
from IDatabase.h:14,
from IDatabase.cpp:12:
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/basic_string.tcc: In member function `typename std::basic_string<_CharT, _Traits, _Alloc>::size_type std::basic_string<_CharT, _Traits, _Alloc>::rfind(const _CharT*, typename _Alloc::size_type, typename _Alloc::size_type) const':
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/basic_string.tcc:730: error: expected unqualified-id before '(' token
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/basic_string.tcc: In member function `int std::basic_string<_CharT, _Traits, _Alloc>::compare(typename _Alloc::size_type, typename _Alloc::size_type, const std::basic_string<_CharT, _Traits, _Alloc>&) const':
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/basic_string.tcc:867: error: expected unqualified-id before '(' token
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/basic_string.tcc: In member function `int std::basic_string<_CharT, _Traits, _Alloc>::compare(typename _Alloc::size_type, typename _Alloc::size_type, const std::basic_string<_CharT, _Traits, _Alloc>&, typename _Alloc::size_type, typename _Alloc::size_type) const':
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/basic_string.tcc:884: error: expected unqualified-id before '(' token
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/basic_string.tcc: In member function `int std::basic_string<_CharT, _Traits, _Alloc>::compare(const _CharT*) const':
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/basic_string.tcc:900: error: expected unqualified-id before '(' token
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/basic_string.tcc: In member function `int std::basic_string<_CharT, _Traits, _Alloc>::compare(typename _Alloc::size_type, typename _Alloc::size_type, const _CharT*) const':
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/basic_string.tcc:916: error: expected unqualified-id before '(' token
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/basic_string.tcc: In member function `int std::basic_string<_CharT, _Traits, _Alloc>::compare(typename _Alloc::size_type, typename _Alloc::size_type, const _CharT*, typename _Alloc::size_type) const':
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/basic_string.tcc:932: error: expected unqualified-id before '(' token
Obviously I can compile things just fine with <string> outside of sourcemm, but I have no idea what's going on with these errors.