List:MySQL++« Previous MessageNext Message »
From:ivan gm Date:May 14 2008 9:18am
Subject:Visual 2005 compiling errors
View as plain text  
Hello:

I have a x64 intel dual core processor and i have been installed mysql
server 5.0 x64 version (I have test it with 5.1 and 6.0 too) After that i
download the mysql++ library and follow the steps explained in the
READMEVisualC++.txt. Then when I have to compile mysql++ with visual studio
2005, y open the mysql++ visual 2005 sln file and starts the compilation.
The following 35 errors appears:


1> Creating library D:\libraries\mysql++-3.0.3\vc2005\Debug\mysqlpp_d.lib
and object D:\libraries\mysql++-3.0.3\vc2005\Debug\mysqlpp_d.exp

1>connection.obj : error LNK2019: unresolved external symbol
_mysql_get_client_info@0 referenced in function "public: class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > __thiscall
mysqlpp::DBDriver::client_version(void)const " (?client_version@DBDriver
@mysqlpp@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@
@XZ)

1>dbdriver.obj : error LNK2001: unresolved external symbol
_mysql_get_client_info@0

1>connection.obj : error LNK2019: unresolved external symbol
_mysql_errno@4referenced in function "public: int __thiscall
mysqlpp::Connection::errnum(void)" (?errnum@Connection@mysqlpp@@QAEHXZ)

1>connection.obj : error LNK2019: unresolved external symbol
_mysql_error@4referenced in function "public: char const * __thiscall
mysqlpp::Connection::error(void)const " (?error@Connection@mysqlpp@
@QBEPBDXZ)

1>connection.obj : error LNK2019: unresolved external symbol
_mysql_get_host_info@4 referenced in function "public: class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > __thiscall mysqlpp::DBDriver::ipc_info(void)"
(?ipc_info@DBDriver@mysqlpp@@QAE?AV?$basic_string@DU?$char_traits@D@std@
@V?$allocator@D@2@@std@@XZ)

1>connection.obj : error LNK2019: unresolved external symbol
_mysql_kill@8referenced in function "public: bool __thiscall
mysqlpp::Connection::kill(unsigned long)const " (?kill@Connection@mysqlpp@
@QBE_NK@Z)

1>connection.obj : error LNK2019: unresolved external symbol
_mysql_ping@4referenced in function "public: bool __thiscall
mysqlpp::Connection::ping(void)" (?ping@Connection@mysqlpp@@QAE_NXZ)

1>connection.obj : error LNK2019: unresolved external symbol
_mysql_get_proto_info@4 referenced in function "public: int __thiscall
mysqlpp::Connection::protocol_version(void)const "
(?protocol_version@Connection@mysqlpp@@QBEHXZ)

1>connection.obj : error LNK2019: unresolved external symbol
_mysql_select_db@8 referenced in function "public: bool __thiscall
mysqlpp::Connection::select_db(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)"
(?select_db@Connection@mysqlpp@@QAE_NABV?$basic_string@DU?$char_traits@D
@std@@V?$allocator@D@2@@std@@@Z)

1>connection.obj : error LNK2019: unresolved external symbol
_mysql_stat@4referenced in function "public: class
std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > __thiscall
mysqlpp::DBDriver::server_status(void)" (?server_status@DBDriver@mysqlpp@
@QAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)

1>connection.obj : error LNK2019: unresolved external symbol
_mysql_get_server_info@4 referenced in function "public: class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > __thiscall mysqlpp::DBDriver::server_version(void)"
(?server_version@DBDriver@mysqlpp@@QAE?AV?$basic_string@DU?$char_traits@D
@std@@V?$allocator@D@2@@std@@XZ)

1>connection.obj : error LNK2019: unresolved external symbol
_mysql_thread_end@0 referenced in function "public: static void __cdecl
mysqlpp::Connection::thread_end(void)" (?thread_end@Connection@mysqlpp@
@SAXXZ)

1>connection.obj : error LNK2019: unresolved external symbol
_mysql_thread_id@4 referenced in function "public: unsigned long __thiscall
mysqlpp::Connection::thread_id(void)" (?thread_id@Connection@mysqlpp@
@QAEKXZ)

1>connection.obj : error LNK2019: unresolved external symbol
_mysql_thread_init@0 referenced in function "public: static bool __cdecl
mysqlpp::Connection::thread_start(void)" (?thread_start@Connection@mysqlpp@
@SA_NXZ)

1>result.obj : error LNK2019: unresolved external symbol
_mysql_free_result@4 referenced in function "class mysqlpp::String * __cdecl
stdext::unchecked_copy<class std::_Vector_const_iterator<class
mysqlpp::String,class std::allocator<class mysqlpp::String> >,class
mysqlpp::String *>(class std::_Vector_const_iterator<class
mysqlpp::String,class std::allocator<class mysqlpp::String> >,class
std::_Vector_const_iterator<class mysqlpp::String,class std::allocator<class
mysqlpp::String> >,class mysqlpp::String *)" (??$unchecked_copy@V
?$_Vector_const_iterator@VString@mysqlpp@@V?$allocator@VString@mysqlpp@
@@std@@@std@@PAVString@mysqlpp@@@stdext@@YAPAVString@mysqlpp
@@V?$_Vector_const_iterator@VString@mysqlpp@@V?$allocator@VString@mysqlpp@
@@std@@@std@@0PAV12@@Z)

1>row.obj : error LNK2001: unresolved external symbol _mysql_free_result@4

1>transaction.obj : error LNK2001: unresolved external symbol
_mysql_free_result@4

1>vallist.obj : error LNK2001: unresolved external symbol
_mysql_free_result@4

1>mysql++.obj : error LNK2001: unresolved external symbol
_mysql_free_result@4

1>mystring.obj : error LNK2001: unresolved external symbol
_mysql_free_result@4

1>qparms.obj : error LNK2001: unresolved external symbol
_mysql_free_result@4

1>query.obj : error LNK2001: unresolved external symbol _mysql_free_result@4

1>connection.obj : error LNK2001: unresolved external symbol
_mysql_free_result@4

1>field_names.obj : error LNK2001: unresolved external symbol
_mysql_free_result@4

1>field_types.obj : error LNK2001: unresolved external symbol
_mysql_free_result@4

1>manip.obj : error LNK2001: unresolved external symbol _mysql_free_result@4

1>dbdriver.obj : error LNK2019: unresolved external symbol
_mysql_init@4referenced in function "public: __thiscall
mysqlpp::DBDriver::DBDriver(void)" (??0DBDriver@mysqlpp@@QAE@XZ)

1>dbdriver.obj : error LNK2019: unresolved external symbol
_mysql_real_connect@32 referenced in function "public: virtual bool
__thiscall mysqlpp::DBDriver::connect(char const *,char const *,unsigned
int,char const *,char const *,char const *)" (?connect@DBDriver@mysqlpp@
@UAE_NPBD0I000@Z)

1>dbdriver.obj : error LNK2019: unresolved external symbol
_mysql_close@4referenced in function "public: void __thiscall
mysqlpp::DBDriver::disconnect(void)" (?disconnect@DBDriver@mysqlpp@@QAEXXZ)

1>dbdriver.obj : error LNK2019: unresolved external symbol
_mysql_ssl_set@24referenced in function "public: bool __thiscall
mysqlpp::DBDriver::enable_ssl(char const *,char const *,char const *,char
const *,char const *)" (?enable_ssl@DBDriver@mysqlpp@@QAE_NPBD0000@Z)

1>dbdriver.obj : error LNK2019: unresolved external symbol
_mysql_info@4referenced in function "public: class
std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > __thiscall
mysqlpp::DBDriver::query_info(void)" (?query_info@DBDriver@mysqlpp@
@QAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)

1>dbdriver.obj : error LNK2019: unresolved external symbol
_mysql_shutdown@8referenced in function "public: bool __thiscall
mysqlpp::DBDriver::shutdown(void)" (?shutdown@DBDriver@mysqlpp@@QAE_NXZ)

1>dbdriver.obj : error LNK2019: unresolved external symbol
_mysql_thread_safe@0 referenced in function "public: static bool __cdecl
mysqlpp::DBDriver::thread_aware(void)" (?thread_aware@DBDriver@mysqlpp@
@SA_NXZ)

1>options.obj : error LNK2019: unresolved external symbol
_mysql_options@12referenced in function "private: virtual enum
mysqlpp::Option::Error
__thiscall mysqlpp::CompressOption::set(class mysqlpp::DBDriver *)"
(?set@CompressOption@mysqlpp@@EAE?AW4Error@Option@2@PAVDBDriver@2@@Z)

1>options.obj : error LNK2019: unresolved external symbol
_mysql_set_server_option@8 referenced in function "private: virtual enum
mysqlpp::Option::Error __thiscall mysqlpp::MultiResultsOption::set(class
mysqlpp::DBDriver *)" (?set@MultiResultsOption@mysqlpp@@EAE?AW4Error@Option
@2@PAVDBDriver@2@@Z)

1>query.obj : error LNK2019: unresolved external symbol
_mysql_affected_rows@4 referenced in function "public: unsigned __int64
__thiscall mysqlpp::Query::affected_rows(void)" (?affected_rows@Query
@mysqlpp@@QAE_KXZ)

1>query.obj : error LNK2019: unresolved external symbol
_mysql_escape_string@12 referenced in function "public: unsigned int
__thiscall mysqlpp::Query::escape_string(char *,char const *,unsigned
int)const " (?escape_string@Query@mysqlpp@@QBEIPADPBDI@Z)

1>query.obj : error LNK2019: unresolved external symbol
_mysql_real_escape_string@16 referenced in function "public: unsigned int
__thiscall mysqlpp::Query::escape_string(char *,char const *,unsigned
int)const " (?escape_string@Query@mysqlpp@@QBEIPADPBDI@Z)

1>query.obj : error LNK2019: unresolved external symbol
_mysql_real_query@12referenced in function "public: bool __thiscall
mysqlpp::Query::exec(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)" (?exec@Query@mysqlpp@
@QAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)

1>query.obj : error LNK2019: unresolved external symbol
_mysql_insert_id@4referenced in function "public: unsigned __int64
__thiscall
mysqlpp::Query::insert_id(void)" (?insert_id@Query@mysqlpp@@QAE_KXZ)

1>query.obj : error LNK2019: unresolved external symbol
_mysql_more_results@4 referenced in function "public: bool __thiscall
mysqlpp::Query::more_results(void)" (?more_results@Query@mysqlpp@@QAE_NXZ)

1>query.obj : error LNK2019: unresolved external symbol
_mysql_store_result@4 referenced in function "public: class
mysqlpp::StoreQueryResult __thiscall mysqlpp::Query::store(char const
*,unsigned int)" (?store@Query@mysqlpp@@QAE?AVStoreQueryResult@2@PBDI@Z)

1>query.obj : error LNK2019: unresolved external symbol
_mysql_next_result@4referenced in function "public: class
mysqlpp::StoreQueryResult __thiscall
mysqlpp::Query::store_next(void)" (?store_next@Query@mysqlpp@
@QAE?AVStoreQueryResult@2@XZ)

1>query.obj : error LNK2019: unresolved external symbol
_mysql_use_result@4referenced in function "public: class
mysqlpp::UseQueryResult __thiscall
mysqlpp::Query::use(char const *,unsigned int)" (?use@Query@mysqlpp@
@QAE?AVUseQueryResult@2@PBDI@Z)

1>result.obj : error LNK2019: unresolved external symbol
_mysql_field_seek@8referenced in function "protected: __thiscall
mysqlpp::ResultBase::ResultBase(struct st_mysql_res *,class
mysqlpp::DBDriver *,bool)" (??0ResultBase@mysqlpp@@IAE@PAUst_mysql_res
@@PAVDBDriver@1@_N@Z)

1>result.obj : error LNK2019: unresolved external symbol
_mysql_fetch_field_direct@8 referenced in function "protected: __thiscall
mysqlpp::ResultBase::ResultBase(struct st_mysql_res *,class
mysqlpp::DBDriver *,bool)" (??0ResultBase@mysqlpp@@IAE@PAUst_mysql_res
@@PAVDBDriver@1@_N@Z)

1>result.obj : error LNK2019: unresolved external symbol
_mysql_fetch_field@4 referenced in function "protected: __thiscall
mysqlpp::ResultBase::ResultBase(struct st_mysql_res *,class
mysqlpp::DBDriver *,bool)" (??0ResultBase@mysqlpp@@IAE@PAUst_mysql_res
@@PAVDBDriver@1@_N@Z)

1>result.obj : error LNK2019: unresolved external symbol
_mysql_num_fields@4referenced in function "protected: __thiscall
mysqlpp::ResultBase::ResultBase(struct st_mysql_res *,class
mysqlpp::DBDriver *,bool)" (??0ResultBase@mysqlpp@@IAE@PAUst_mysql_res
@@PAVDBDriver@1@_N@Z)

1>result.obj : error LNK2019: unresolved external symbol
_mysql_fetch_lengths@4 referenced in function "public: __thiscall
mysqlpp::StoreQueryResult::StoreQueryResult(struct st_mysql_res *,class
mysqlpp::DBDriver *,bool)" (??0StoreQueryResult@mysqlpp@@QAE@PAUst_mysql_res
@@PAVDBDriver@1@_N@Z)

1>result.obj : error LNK2019: unresolved external symbol
_mysql_fetch_row@4referenced in function "public: __thiscall
mysqlpp::StoreQueryResult::StoreQueryResult(struct st_mysql_res *,class
mysqlpp::DBDriver *,bool)" (??0StoreQueryResult@mysqlpp@@QAE@PAUst_mysql_res
@@PAVDBDriver@1@_N@Z)

1>result.obj : error LNK2019: unresolved external symbol
_mysql_num_rows@4referenced in function "public: __thiscall
mysqlpp::StoreQueryResult::StoreQueryResult(struct st_mysql_res *,class
mysqlpp::DBDriver *,bool)" (??0StoreQueryResult@mysqlpp@@QAE@PAUst_mysql_res
@@PAVDBDriver@1@_N@Z)

1>D:\libraries\mysql++-3.0.3\vc2005\Debug\mysqlpp_d.dll : fatal error
LNK1120: 39 unresolved externals

1>El registro de generación se guardó en el
"file://D:\libraries\mysql++-3.0.3\vc2005\Debug\mysqlpp\BuildLog.htm"

1>mysqlpp - 52 errores, 0 advertencias



What can be the problem?

Thank you very much.

Iván García Martínez.

Thread
Visual 2005 compiling errorsivan gm14 May
  • Re: Visual 2005 compiling errorsWarren Young14 May