Hello, I am using Visual C++ 6.0 and I have some linking problems while trying to run the example program MFC_ex.cpp included in the downloading files in the mysql.com website. Here are the errors I get:
--------------------Configuration: MFC_ex - Win32 Debug-------------------- Linking... MFC_ex.obj : error LNK2001: unresolved external symbol "public: __thiscall MysqlConnection::~MysqlConnection(void)" (??1MysqlConnection@@QAE@XZ) MFC_ex.obj : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,class mysql_ColData<class const_string> const &)" (??6@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV01@ABV?$mysql_ColData@Vconst_string@@@@@Z) MFC_ex.obj : error LNK2001: unresolved external symbol "public: __thiscall MysqlConnection::MysqlConnection(char const *,char const *,char const *,char const *,bool)" (??0MysqlConnection@@QAE@PBD000_N@Z) MFC_ex.obj : error LNK2001: unresolved external symbol "public: __thiscall MysqlResUse::~MysqlResUse(void)" (??1MysqlResUse@@QAE@XZ) MFC_ex.obj : error LNK2001: unresolved external symbol _mysql_num_rows@4 MFC_ex.obj : error LNK2001: unresolved external symbol _mysql_fetch_lengths@4 MFC_ex.obj : error LNK2001: unresolved external symbol _mysql_fetch_row@4 MFC_ex.obj : error LNK2001: unresolved external symbol _mysql_data_seek@12 MFC_ex.obj : error LNK2001: unresolved external symbol "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall SQLQuery::str(class SQLQueryParms const &)const " (?str@SQLQuery@@QBE?AV?$basic_strin g@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVSQLQueryParms@@@Z) MFC_ex.obj : error LNK2001: unresolved external symbol "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall SQLQuery::str(class SQLQueryParms const &,enum query_reset)" (?str@SQLQuery@@QAE?AV?$ basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVSQLQueryParms@@W4query_reset@@@Z) MFC_ex.obj : error LNK2001: unresolved external symbol "public: class MysqlRes __thiscall MysqlConnection::store(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool)" (?store@MysqlConnection@@QAE?AVM ysqlRes@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z) MFC_ex.obj : error LNK2001: unresolved external symbol "protected: virtual class std::fpos<int> __thiscall std::strstreambuf::seekoff(long,short,int)" (?seekoff@strstreambuf@std@@MAE?AV?$fpos@H@2@JFH@Z) MFC_ex.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall MysqlResUse::num_fields(void)const " (?num_fields@MysqlResUse@@QBEIXZ) MFC_ex.obj : error LNK2001: unresolved external symbol "private: void __thiscall MysqlFieldNames::init(class MysqlResUse const *)" (?init@MysqlFieldNames@@AAEXPBVMysqlResUse@@@Z) MFC_ex.obj : error LNK2001: unresolved external symbol "private: void __thiscall FieldTypes::init(class MysqlResUse const *)" (?init@FieldTypes@@AAEXPBVMysqlResUse@@@Z) nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex Debug/MFC_ex.exe : fatal error LNK1120: 17 unresolved externals Error executing link.exe. MFC_ex.exe - 18 error(s), 0 warning(s) Thanks a lot for your help __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php