C++ und mysql

soox

New member
hab folgende fehlermeldung wenn ich verusche ein bsp von mysql zu uebersetzen.....

Code:
foo% gcc -l mysqlcc -I /usr/include/mysql++ -I /usr/include/mysql mysqlbsp.cpp 
mysqlbsp.cpp: In function `int main()':
mysqlbsp.cpp:17: error: ISO C++ says that `std::basic_ostream<char, _Traits>& 
   std::operator<<(std::basic_ostream<char, _Traits>&, const char*) [with 
   _Traits = std::char_traits<char>]' and `SQLQuery& operator<<(SQLQuery&, 
   const mysql_ColData<const_string>&)' are ambiguous even though the worst 
   conversion for the former is better than the worst conversion for the latter
mysqlbsp.cpp:17: error: ISO C++ says that `std::basic_ostream<char, _Traits>& 
   std::operator<<(std::basic_ostream<char, _Traits>&, const char*) [with 
   _Traits = std::char_traits<char>]' and `SQLQuery& operator<<(SQLQuery&, 
   const mysql_ColData<std::string>&)' are ambiguous even though the worst 
   conversion for the former is better than the worst conversion for the latter
foo%
das bsp ist dieses hier:
http://www.mysql.com/documentation/mysql++/4_Tutorial.html#SECTION03141000000000000000


zeile 17:
query << "select * from stock";


hat wer ne idee?
 
Oben