MySQL Forums
Forum List  »  Connector/C++

compile of v1.1.0 fails with "invalid covariant return type"
Posted by: Dominic Froud
Date: September 30, 2009 06:33AM

Hello,

I'm trying to compile v1.1.0 from trunk rev 786 on FreeBSD 7.1 amd64 using g++ v4.2.1 and boost v1.34.1

"cmake ." runs okay but when I run make I get this:

puma# make
[ 0%] Building CXX object driver/CMakeFiles/mysqlcppconn.dir/mysql_art_resultset.cpp.o
In file included from /root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.cpp:17:
/root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.h:178: error: invalid covariant return type for 'virtual sql::SQLString sql::mysql::MySQL_ArtResultSet::getString(uint32_t) const'
/usr/local/include/cppconn/resultset.h:102: error: overriding 'virtual std::string sql::ResultSet::getString(uint32_t) const'
/usr/local/include/cppconn/resultset.h:71: warning: 'virtual uint32_t sql::ResultSet::findColumn(const std::string&) const' was hidden
/root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.h:127: warning: by 'uint32_t sql::mysql::MySQL_ArtResultSet::findColumn(const sql::SQLString&) const'
/usr/local/include/cppconn/resultset.h:76: warning: 'virtual std::istream* sql::ResultSet::getBlob(const std::string&) const' was hidden
/root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.h:133: warning: by 'sql::mysql::MySQL_ArtResultSet::getBlob'
/usr/local/include/cppconn/resultset.h:79: warning: 'virtual bool sql::ResultSet::getBoolean(const std::string&) const' was hidden
/root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.h:137: warning: by 'sql::mysql::MySQL_ArtResultSet::getBoolean'
/usr/local/include/cppconn/resultset.h:82: warning: 'virtual long double sql::ResultSet::getDouble(const std::string&) const' was hidden
/root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.h:146: warning: by 'sql::mysql::MySQL_ArtResultSet::getDouble'
/usr/local/include/cppconn/resultset.h:85: warning: 'virtual int32_t sql::ResultSet::getInt(const std::string&) const' was hidden
/root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.h:154: warning: by 'sql::mysql::MySQL_ArtResultSet::getInt'
/usr/local/include/cppconn/resultset.h:88: warning: 'virtual uint32_t sql::ResultSet::getUInt(const std::string&) const' was hidden
/root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.h:158: warning: by 'sql::mysql::MySQL_ArtResultSet::getUInt'
/usr/local/include/cppconn/resultset.h:91: warning: 'virtual int64_t sql::ResultSet::getInt64(const std::string&) const' was hidden
/root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.h:162: warning: by 'sql::mysql::MySQL_ArtResultSet::getInt64'
/usr/local/include/cppconn/resultset.h:94: warning: 'virtual uint64_t sql::ResultSet::getUInt64(const std::string&) const' was hidden
/root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.h:166: warning: by 'sql::mysql::MySQL_ArtResultSet::getUInt64'
/usr/local/include/cppconn/resultset.h:103: warning: 'virtual std::string sql::ResultSet::getString(const std::string&) const' was hidden
/root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.h:180: warning: by 'sql::mysql::MySQL_ArtResultSet::getString'
/usr/local/include/cppconn/resultset.h:118: warning: 'virtual bool sql::ResultSet::isNull(const std::string&) const' was hidden
/root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.h:201: warning: by 'sql::mysql::MySQL_ArtResultSet::isNull'
In file included from /root/mysql-connector-cpp/trunk/driver/mysql_art_resultset.cpp:18:
/root/mysql-connector-cpp/trunk/driver/mysql_art_rset_metadata.h:36: error: invalid covariant return type for 'virtual sql::SQLString sql::mysql::MySQL_ArtResultSetMetaData::getCatalogName(unsigned int)'
/usr/local/include/cppconn/resultset_metadata.h:31: error: overriding 'virtual std::string sql::ResultSetMetaData::getCatalogName(unsigned int)'
/root/mysql-connector-cpp/trunk/driver/mysql_art_rset_metadata.h:42: error: invalid covariant return type for 'virtual sql::SQLString sql::mysql::MySQL_ArtResultSetMetaData::getColumnLabel(unsigned int)'
/usr/local/include/cppconn/resultset_metadata.h:37: error: overriding 'virtual std::string sql::ResultSetMetaData::getColumnLabel(unsigned int)'
/root/mysql-connector-cpp/trunk/driver/mysql_art_rset_metadata.h:44: error: invalid covariant return type for 'virtual sql::SQLString sql::mysql::MySQL_ArtResultSetMetaData::getColumnName(unsigned int)'
/usr/local/include/cppconn/resultset_metadata.h:39: error: overriding 'virtual std::string sql::ResultSetMetaData::getColumnName(unsigned int)'
/root/mysql-connector-cpp/trunk/driver/mysql_art_rset_metadata.h:48: error: invalid covariant return type for 'virtual sql::SQLString sql::mysql::MySQL_ArtResultSetMetaData::getColumnTypeName(unsigned int)'
/usr/local/include/cppconn/resultset_metadata.h:43: error: overriding 'virtual std::string sql::ResultSetMetaData::getColumnTypeName(unsigned int)'
/root/mysql-connector-cpp/trunk/driver/mysql_art_rset_metadata.h:54: error: invalid covariant return type for 'virtual sql::SQLString sql::mysql::MySQL_ArtResultSetMetaData::getSchemaName(unsigned int)'
/usr/local/include/cppconn/resultset_metadata.h:49: error: overriding 'virtual std::string sql::ResultSetMetaData::getSchemaName(unsigned int)'
/root/mysql-connector-cpp/trunk/driver/mysql_art_rset_metadata.h:56: error: invalid covariant return type for 'virtual sql::SQLString sql::mysql::MySQL_ArtResultSetMetaData::getTableName(unsigned int)'
/usr/local/include/cppconn/resultset_metadata.h:51: error: overriding 'virtual std::string sql::ResultSetMetaData::getTableName(unsigned int)'
*** Error code 1

Stop in /root/mysql-connector-cpp/trunk.
*** Error code 1

Stop in /root/mysql-connector-cpp/trunk.
*** Error code 1

Stop in /root/mysql-connector-cpp/trunk.
puma#


Any ideas?

Thanks,

Dominic

Options: ReplyQuote


Subject
Views
Written By
Posted
compile of v1.1.0 fails with "invalid covariant return type"
4136
September 30, 2009 06:33AM
2318
October 21, 2009 03:25PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.