Hallo, ich versuche grad nen C++ programm zuschreiben, um die einstellung von MySQL zu testen wollt eich mit Visual Studio Net 2003 erstmal die examples starten.
Erst hat er die mysql++.lib gar nicht gefunden, seid ich die dann aus dem netz gezogen hab und ins richtig verzeichniss gebracht hab bringt er folgende fehler:
resetdb.obj : error LNK2019: unresolved external symbol "public: __thiscall mysqlpp::SQLString::SQLString(int)" (0SQLString@mysqlpp@@QAE@H@Z) referenced in function $L86620
resetdb.obj : error LNK2019: unresolved external symbol "public: __thiscall mysqlpp::SQLString::SQLString(double)" (0SQLString@mysqlpp@@QAE@N@Z) referenced in function $L86620
resetdb.obj : error LNK2019: unresolved external symbol "public: __thiscall mysqlpp::SQLString::SQLString(char const *)" (0SQLString@mysqlpp@@QAE@PBD@Z) referenced in function $L86620
resetdb.obj : error LNK2019: unresolved external symbol "public: void __thiscall mysqlpp::SQLQuery:
arse(void)" (?parse@SQLQuery@mysqlpp@@QAEXXZ) referenced in function $L86620
resetdb.obj : error LNK2019: unresolved external symbol "public: class mysqlpp::ResNSel __thiscall mysqlpp::Query::execute(char const *)" (?execute@Query@mysqlpp@@QAE?AVResNSel@2@PBD@Z) referenced in function $L86620
resetdb.obj : error LNK2019: unresolved external symbol "public: class mysqlpp::Query __thiscall mysqlpp::Connection::query(void)" (?query@Connection@mysqlpp@@QAE?AVQuery@2@XZ) referenced in function $L86620
resetdb.obj : error LNK2019: unresolved external symbol "public: bool __thiscall mysqlpp::Connection::select_db(char const *)" (?select_db@Connection@mysqlpp@@QAE_NPBD@Z) referenced in function _main
resetdb.obj : error LNK2019: unresolved external symbol "public: __thiscall mysqlpp::Connection::~Connection(void)" (1Connection@mysqlpp@@QAE@XZ) referenced in function _main
resetdb.obj : error LNK2019: unresolved external symbol "public: class mysqlpp::ResNSel __thiscall mysqlpp::Connection::execute(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool)" (?execute@Connection@mysqlpp@@QAE?AVResNSel@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z) referenced in function "public: class mysqlpp::ResNSel __thiscall mysqlpp::Connection::execute(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?execute@Connection@mysqlpp@@QAE?AVResNSel@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
resetdb.obj : error LNK2019: unresolved external symbol "public: class mysqlpp::ResNSel __thiscall mysqlpp::Query::execute(class mysqlpp::SQLQueryParms &)" (?execute@Query@mysqlpp@@QAE?AVResNSel@2@AAVSQLQueryParms@2@@Z) referenced in function "public: class mysqlpp::ResNSel __thiscall mysqlpp::Query::execute(void)" (?execute@Query@mysqlpp@@QAE?AVResNSel@2@XZ)
util.obj : error LNK2019: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl mysqlpp:
perator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,class mysqlpp::ColData_Tmpl<class mysqlpp::const_string> const &)" (6mysqlpp@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV12@ABV?$ColData_Tmpl@Vconst_string@mysqlpp@@@0@@Z) referenced in function "void __cdecl print_stock_table(class mysqlpp::Query &)" (?print_stock_table@@YAXAAVQuery@mysqlpp@@@Z)
util.obj : error LNK2019: unresolved external symbol "public: class mysqlpp::ColData_Tmpl<class mysqlpp::const_string> const __thiscall mysqlpp::Row::lookup_by_name(char const *)const " (?lookup_by_name@Row@mysqlpp@@QBE?BV?$ColData_Tmpl@Vconst_string@mysqlpp@@@2@PBD@Z) referenced in function "void __cdecl print_stock_table(class mysqlpp::Query &)" (?print_stock_table@@YAXAAVQuery@mysqlpp@@@Z)
util.obj : error LNK2019: unresolved external symbol "public: void __thiscall mysqlpp::SQLQuery::reset(void)" (?reset@SQLQuery@mysqlpp@@QAEXXZ) referenced in function "void __cdecl print_stock_table(class mysqlpp::Query &)" (?print_stock_table@@YAXAAVQuery@mysqlpp@@@Z)
util.obj : error LNK2001: unresolved external symbol "public: virtual class mysqlpp::ColData_Tmpl<class mysqlpp::const_string> const __thiscall mysqlpp::Row:
perator[](unsigned int)const " (ARow@mysqlpp@@UBE?BV?$ColData_Tmpl@Vconst_string@mysqlpp@@@1@I@Z)
util.obj : error LNK2001: unresolved external symbol "public: virtual unsigned int __thiscall mysqlpp::Row::size(void)const " (?size@Row@mysqlpp@@UBEIXZ)
util.obj : error LNK2019: unresolved external symbol "public: __thiscall mysqlpp::ResUse::~ResUse(void)" (1ResUse@mysqlpp@@QAE@XZ) referenced in function "public: virtual __thiscall mysqlpp::Result::~Result(void)" (1Result@mysqlpp@@UAE@XZ)
util.obj : error LNK2019: unresolved external symbol "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall mysqlpp::SQLQuery::str(class mysqlpp::SQLQueryParms &)" (?str@SQLQuery@mysqlpp@@QAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAVSQLQueryParms@2@@Z) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall mysqlpp::Query:
review(void)" (?preview@Query@mysqlpp@@QAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
util.obj : error LNK2019: unresolved external symbol "public: class mysqlpp::Result __thiscall mysqlpp::Query::store(class mysqlpp::SQLQueryParms &)" (?store@Query@mysqlpp@@QAE?AVResult@2@AAVSQLQueryParms@2@@Z) referenced in function "public: class mysqlpp::Result __thiscall mysqlpp::Query::store(void)" (?store@Query@mysqlpp@@QAE?AVResult@2@XZ)
util.obj : error LNK2019: unresolved external symbol "public: bool __thiscall mysqlpp::Connection::connect(char const *,char const *,char const *,char const *)" (?connect@Connection@mysqlpp@@QAE_NPBD000@Z) referenced in function "bool __cdecl connect_to_db(int,char * * const,class mysqlpp::Connection &,char const *)" (?connect_to_db@@YA_NHQAPADAAVConnection@mysqlpp@@PBD@Z)
c:\mysql++\examples\Debug\resetdb.exe : fatal error LNK1120: 19 unresolved externals
Kann mir wer ne lösung für dieses Problem sagen?
Danke
Nala
Erst hat er die mysql++.lib gar nicht gefunden, seid ich die dann aus dem netz gezogen hab und ins richtig verzeichniss gebracht hab bringt er folgende fehler:
resetdb.obj : error LNK2019: unresolved external symbol "public: __thiscall mysqlpp::SQLString::SQLString(int)" (0SQLString@mysqlpp@@QAE@H@Z) referenced in function $L86620
resetdb.obj : error LNK2019: unresolved external symbol "public: __thiscall mysqlpp::SQLString::SQLString(double)" (0SQLString@mysqlpp@@QAE@N@Z) referenced in function $L86620
resetdb.obj : error LNK2019: unresolved external symbol "public: __thiscall mysqlpp::SQLString::SQLString(char const *)" (0SQLString@mysqlpp@@QAE@PBD@Z) referenced in function $L86620
resetdb.obj : error LNK2019: unresolved external symbol "public: void __thiscall mysqlpp::SQLQuery:

resetdb.obj : error LNK2019: unresolved external symbol "public: class mysqlpp::ResNSel __thiscall mysqlpp::Query::execute(char const *)" (?execute@Query@mysqlpp@@QAE?AVResNSel@2@PBD@Z) referenced in function $L86620
resetdb.obj : error LNK2019: unresolved external symbol "public: class mysqlpp::Query __thiscall mysqlpp::Connection::query(void)" (?query@Connection@mysqlpp@@QAE?AVQuery@2@XZ) referenced in function $L86620
resetdb.obj : error LNK2019: unresolved external symbol "public: bool __thiscall mysqlpp::Connection::select_db(char const *)" (?select_db@Connection@mysqlpp@@QAE_NPBD@Z) referenced in function _main
resetdb.obj : error LNK2019: unresolved external symbol "public: __thiscall mysqlpp::Connection::~Connection(void)" (1Connection@mysqlpp@@QAE@XZ) referenced in function _main
resetdb.obj : error LNK2019: unresolved external symbol "public: class mysqlpp::ResNSel __thiscall mysqlpp::Connection::execute(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool)" (?execute@Connection@mysqlpp@@QAE?AVResNSel@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z) referenced in function "public: class mysqlpp::ResNSel __thiscall mysqlpp::Connection::execute(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?execute@Connection@mysqlpp@@QAE?AVResNSel@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
resetdb.obj : error LNK2019: unresolved external symbol "public: class mysqlpp::ResNSel __thiscall mysqlpp::Query::execute(class mysqlpp::SQLQueryParms &)" (?execute@Query@mysqlpp@@QAE?AVResNSel@2@AAVSQLQueryParms@2@@Z) referenced in function "public: class mysqlpp::ResNSel __thiscall mysqlpp::Query::execute(void)" (?execute@Query@mysqlpp@@QAE?AVResNSel@2@XZ)
util.obj : error LNK2019: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl mysqlpp:

util.obj : error LNK2019: unresolved external symbol "public: class mysqlpp::ColData_Tmpl<class mysqlpp::const_string> const __thiscall mysqlpp::Row::lookup_by_name(char const *)const " (?lookup_by_name@Row@mysqlpp@@QBE?BV?$ColData_Tmpl@Vconst_string@mysqlpp@@@2@PBD@Z) referenced in function "void __cdecl print_stock_table(class mysqlpp::Query &)" (?print_stock_table@@YAXAAVQuery@mysqlpp@@@Z)
util.obj : error LNK2019: unresolved external symbol "public: void __thiscall mysqlpp::SQLQuery::reset(void)" (?reset@SQLQuery@mysqlpp@@QAEXXZ) referenced in function "void __cdecl print_stock_table(class mysqlpp::Query &)" (?print_stock_table@@YAXAAVQuery@mysqlpp@@@Z)
util.obj : error LNK2001: unresolved external symbol "public: virtual class mysqlpp::ColData_Tmpl<class mysqlpp::const_string> const __thiscall mysqlpp::Row:

util.obj : error LNK2001: unresolved external symbol "public: virtual unsigned int __thiscall mysqlpp::Row::size(void)const " (?size@Row@mysqlpp@@UBEIXZ)
util.obj : error LNK2019: unresolved external symbol "public: __thiscall mysqlpp::ResUse::~ResUse(void)" (1ResUse@mysqlpp@@QAE@XZ) referenced in function "public: virtual __thiscall mysqlpp::Result::~Result(void)" (1Result@mysqlpp@@UAE@XZ)
util.obj : error LNK2019: unresolved external symbol "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall mysqlpp::SQLQuery::str(class mysqlpp::SQLQueryParms &)" (?str@SQLQuery@mysqlpp@@QAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAVSQLQueryParms@2@@Z) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall mysqlpp::Query:

util.obj : error LNK2019: unresolved external symbol "public: class mysqlpp::Result __thiscall mysqlpp::Query::store(class mysqlpp::SQLQueryParms &)" (?store@Query@mysqlpp@@QAE?AVResult@2@AAVSQLQueryParms@2@@Z) referenced in function "public: class mysqlpp::Result __thiscall mysqlpp::Query::store(void)" (?store@Query@mysqlpp@@QAE?AVResult@2@XZ)
util.obj : error LNK2019: unresolved external symbol "public: bool __thiscall mysqlpp::Connection::connect(char const *,char const *,char const *,char const *)" (?connect@Connection@mysqlpp@@QAE_NPBD000@Z) referenced in function "bool __cdecl connect_to_db(int,char * * const,class mysqlpp::Connection &,char const *)" (?connect_to_db@@YA_NHQAPADAAVConnection@mysqlpp@@PBD@Z)
c:\mysql++\examples\Debug\resetdb.exe : fatal error LNK1120: 19 unresolved externals
Kann mir wer ne lösung für dieses Problem sagen?
Danke
Nala