Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MySQL++ and VC++ 2005

Status
Not open for further replies.

MaggotMouth

Programmer
Aug 13, 2006
9
ZA
Hey there...

I have reached the limit of my patience. I'm trying to use mysql++ in my program. It works fine if I build a normal Win32 Console Application, but if I build a CLR Windows Forms Application, it gives me 27 linking errors like these 2 below.

Code:
test.obj : error LNK2028: unresolved token (0A00000E) "public: virtual class mysqlpp::ColData_Tmpl<class mysqlpp::const_string> const __clrcall mysqlpp::Row::at(unsigned int)const " (?at@Row@mysqlpp@@$$FUBM?BV?$ColData_Tmpl@Vconst_string@mysqlpp@@@2@I@Z) referenced in function "void __clrcall `dynamic initializer for 'const mysqlpp::Row::`vftable'{for `mysqlpp::const_subscript_container<class mysqlpp::Row,class mysqlpp::ColData_Tmpl<class mysqlpp::const_string>,class mysqlpp::ColData_Tmpl<class mysqlpp::const_string> const ,unsigned int,int>'}''(void)" (???__E??_7Row@mysqlpp@@6B?$const_subscript_container@VRow@mysqlpp@@V?$ColData_Tmpl@Vconst_string@mysqlpp@@@2@$$CBV32@IH@1@@@@YMXXZ@?A0x8ed57892@@$$FYMXXZ)

test.obj : error LNK2019: unresolved external symbol "public: virtual __clrcall mysqlpp::Row::~Row(void)" (??1Row@mysqlpp@@$$FUAM@XZ) referenced in function "public: virtual void * __clrcall mysqlpp::Row::`vector deleting destructor'(unsigned int)" (??_ERow@mysqlpp@@$$FUAMPAXI@Z)


Anyone got any ideas how I can rid myself of this frustration?

Cheers
 
Go into help and find out which library each routine is. Add those libraries to your link parameters.
 
I linked every possible library associated with the functions.... still get the errors
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top