g++ -Wall -ggdb -g -O0 Grammar_Matcher_Test.cpp -lpthread -I/usr/local/include -L/usr/local/lib -lcurl -lexpat -o Grammar_Matcher_Test /usr/include/g++/bits/stl_iterator_base_types.h: In instantiation of `std::iterator_traits': /usr/include/g++/bits/basic_string.h:624: instantiated from `std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::replace(__gnu_cxx::__normal_iterator >, __gnu_cxx::__normal_iterator >, _InputIterator, _InputIterator) [with _InputIterator = int, _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator]' /usr/include/g++/bits/basic_string.h:492: instantiated from `std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::append(_InputIterator, _InputIterator) [with _InputIterator = int, _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator]' Grammar_Matcher.cpp:258: instantiated from here /usr/include/g++/bits/stl_iterator_base_types.h:126: error: `int' is not a class, struct, or union type /usr/include/g++/bits/stl_iterator_base_types.h:127: error: `int' is not a class, struct, or union type /usr/include/g++/bits/stl_iterator_base_types.h:128: error: `int' is not a class, struct, or union type /usr/include/g++/bits/stl_iterator_base_types.h:129: error: `int' is not a class, struct, or union type /usr/include/g++/bits/stl_iterator_base_types.h:130: error: `int' is not a class, struct, or union type /usr/include/g++/bits/basic_string.h: In member function ` std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::replace(__gnu_cxx::__normal_iterator >, __gnu_cxx::__normal_iterator >, _InputIterator, _InputIterator) [with _InputIterator = int, _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator]': /usr/include/g++/bits/basic_string.h:492: instantiated from `std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::append(_InputIterator, _InputIterator) [with _InputIterator = int, _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator]' Grammar_Matcher.cpp:258: instantiated from here /usr/include/g++/bits/basic_string.h:624: error: no type named ` iterator_category' in `struct std::iterator_traits' make: *** [Grammar_Matcher_Test] Error 1