Hi, I use Netbeans with minGW and I tried to build MySQL Connector. My build has unfortunatelly ended with this error :
c:/MinGW/lib/mysql_connector/mysqlcppconn-static.lib(./mysqlcppconn-static.dir/RelWithDebInfo/mysql_art_rset_metadata.obj):(.text[?getSchemaName@MySQL_ArtResultSetMetaData@mysql@sql@@UAE?AVSQLString@3@I@Z]+0x2f): undefined reference to `_imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z'
c:/MinGW/lib/mysql_connector/mysqlcppconn-static.lib(./mysqlcppconn-static.dir/RelWithDebInfo/mysql_art_rset_metadata.obj):(.text[?getTableName@MySQL_ArtResultSetMetaData@mysql@sql@@UAE?AVSQLString@3@I@Z]+0x2f): undefined reference to `_imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z'
c:/MinGW/lib/mysql_connector/mysqlcppconn-static.lib(./mysqlcppconn-static.dir/RelWithDebInfo/mysql_art_rset_metadata.obj):(.text[??1MySQL_ArtResultSetMetaData@mysql@sql@@UAE@XZ]+0x12): undefined reference to `__security_cookie'
c:/MinGW/lib/mysql_connector/mysqlcppconn-static.lib(./mysqlcppconn-static.dir/RelWithDebInfo/mysql_art_rset_metadata.obj):(.text$x+0x15): undefined reference to `@__security_check_cookie@4'
c:/MinGW/lib/mysql_connector/mysqlcppconn-static.lib(./mysqlcppconn-static.dir/RelWithDebInfo/mysql_art_rset_metadata.obj):(.text$x+0x1f): undefined reference to `__CxxFrameHandler3'
c:/MinGW/lib/mysql_connector/mysqlcppconn-static.lib(./mysqlcppconn-static.dir/RelWithDebInfo/mysql_art_rset_metadata.obj):(.data[??_R0?AVMySQL_ArtResultSetMetaData@mysql@sql@@@8]+0x0): undefined reference to `??_7type_info@@6B@'
c:/MinGW/lib/mysql_connector/mysqlcppconn-static.lib(./mysqlcppconn-static.dir/RelWithDebInfo/mysql_art_rset_metadata.obj):(.text[?getColumnLabel@MySQL_ArtResultSetMetaData@mysql@sql@@UAE?AVSQLString@3@I@Z]+0x41): undefined reference to `_imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z'
c:/MinGW/lib/mysql_connector/mysqlcppconn-static.lib(./mysqlcppconn-static.dir/RelWithDebInfo/mysql_art_rset_metadata.obj):(.text[?getColumnNamemake[2]: Leaving directory `/c/data/c++/MySqlDemo'
@MySQL_ArtResultSetMetaData@mysql@sql@@UAE?AVSQLString@3@I@Z]+0x41): undefined reference to `_imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z'
c:/MinGW/lib/mysql_connector/mysqlcppconn-static.lib(./mysqlcppconn-static.dir/RelWithDebInfo/mysql_art_rset_metadata.obj):(.text[??_GMySQL_ArtResultSetMetaData@mysql@sql@@UAEPAXI@Z]+0x11): undefined reference to `??3@YAXPAX@Z'
collect2: ld returned 1 exit status
make[2]: *** [dist/Debug/MinGW-Windows/mysqldemo.exe] Error 1
make[1]: make[1]: Leaving directory `/c/data/c++/MySqlDemo'
*** [.build-conf] Error 2
make: *** [.build-impl] Error 2
Can someone give me advice how fix this error?
c:/MinGW/lib/mysql_connector/mysqlcppconn-static.lib(./mysqlcppconn-static.dir/RelWithDebInfo/mysql_art_rset_metadata.obj):(.text[?getSchemaName@MySQL_ArtResultSetMetaData@mysql@sql@@UAE?AVSQLString@3@I@Z]+0x2f): undefined reference to `_imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z'
c:/MinGW/lib/mysql_connector/mysqlcppconn-static.lib(./mysqlcppconn-static.dir/RelWithDebInfo/mysql_art_rset_metadata.obj):(.text[?getTableName@MySQL_ArtResultSetMetaData@mysql@sql@@UAE?AVSQLString@3@I@Z]+0x2f): undefined reference to `_imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z'
c:/MinGW/lib/mysql_connector/mysqlcppconn-static.lib(./mysqlcppconn-static.dir/RelWithDebInfo/mysql_art_rset_metadata.obj):(.text[??1MySQL_ArtResultSetMetaData@mysql@sql@@UAE@XZ]+0x12): undefined reference to `__security_cookie'
c:/MinGW/lib/mysql_connector/mysqlcppconn-static.lib(./mysqlcppconn-static.dir/RelWithDebInfo/mysql_art_rset_metadata.obj):(.text$x+0x15): undefined reference to `@__security_check_cookie@4'
c:/MinGW/lib/mysql_connector/mysqlcppconn-static.lib(./mysqlcppconn-static.dir/RelWithDebInfo/mysql_art_rset_metadata.obj):(.text$x+0x1f): undefined reference to `__CxxFrameHandler3'
c:/MinGW/lib/mysql_connector/mysqlcppconn-static.lib(./mysqlcppconn-static.dir/RelWithDebInfo/mysql_art_rset_metadata.obj):(.data[??_R0?AVMySQL_ArtResultSetMetaData@mysql@sql@@@8]+0x0): undefined reference to `??_7type_info@@6B@'
c:/MinGW/lib/mysql_connector/mysqlcppconn-static.lib(./mysqlcppconn-static.dir/RelWithDebInfo/mysql_art_rset_metadata.obj):(.text[?getColumnLabel@MySQL_ArtResultSetMetaData@mysql@sql@@UAE?AVSQLString@3@I@Z]+0x41): undefined reference to `_imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z'
c:/MinGW/lib/mysql_connector/mysqlcppconn-static.lib(./mysqlcppconn-static.dir/RelWithDebInfo/mysql_art_rset_metadata.obj):(.text[?getColumnNamemake[2]: Leaving directory `/c/data/c++/MySqlDemo'
@MySQL_ArtResultSetMetaData@mysql@sql@@UAE?AVSQLString@3@I@Z]+0x41): undefined reference to `_imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z'
c:/MinGW/lib/mysql_connector/mysqlcppconn-static.lib(./mysqlcppconn-static.dir/RelWithDebInfo/mysql_art_rset_metadata.obj):(.text[??_GMySQL_ArtResultSetMetaData@mysql@sql@@UAEPAXI@Z]+0x11): undefined reference to `??3@YAXPAX@Z'
collect2: ld returned 1 exit status
make[2]: *** [dist/Debug/MinGW-Windows/mysqldemo.exe] Error 1
make[1]: make[1]: Leaving directory `/c/data/c++/MySqlDemo'
*** [.build-conf] Error 2
make: *** [.build-impl] Error 2
Can someone give me advice how fix this error?