Good Day,

I have troubles with compiling MySQL++ with Visual Studio 2010 Express edition, I've downloaded MySQL Complete Pack and installed Development tools (server, includes etc), downloaded MySQL++ 3.1.0 and runned vc2008 solution with my vc2010 and compressed it for 2010, I've included everything from MySQL folder and MySQL++ install program, screenshots:

http://filebeam.com/8c5c8e2345f8ad23ca9d5d5afc75021a.jpg

and this is what I get while compiling:

http://pastebin.com/NB6wD9Jd

(sorry for pastebin, but it was very long :))

what I did wrong?

edit: I'm building only mysqlpp

You probably installed the 64-bit version of MySQL server??? That's what I did, and I had to uninstall it and install the 32-bit version because that compiler can not generate 64-bit code.

no, I've downloaded 32 bit installer (http://www.mysql.com/downloads/installer/) and I didn't noticed selection between 32/64 bit, so, what now?

edit: or is it 64 bit installer? O_o

edit2: I'm now reinstalling it and it's 32bit runtime for VC2010

edit3: I uninstalled all my MySQL compoments and downloaded ONLY mySQL client installer and installed it with developer tools, now I'm getting only few errors:

1>     Creating library C:\Users\Mekkatorqu\Desktop\mysql++-3.1.0\vc2008\Release\mysqlpp.lib and object C:\Users\Mekkatorqu\Desktop\mysql++-3.1.0\vc2008\Release\mysqlpp.exp
1>tcp_connection.obj : error LNK2019: unresolved external symbol _ntohs@4 referenced in function "public: static bool __cdecl mysqlpp::TCPConnection::parse_address(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,unsigned int &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (?parse_address@TCPConnection@mysqlpp@@SA_NAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAI0@Z)
1>tcp_connection.obj : error LNK2019: unresolved external symbol _getservbyname@8 referenced in function "public: static bool __cdecl mysqlpp::TCPConnection::parse_address(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,unsigned int &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (?parse_address@TCPConnection@mysqlpp@@SA_NAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAI0@Z)
1>C:\Users\Mekkatorqu\Desktop\mysql++-3.1.0\vc2008\Release\mysqlpp.dll : fatal error LNK1120: 2 unresolved externals

A quick Google search uncovered this, which suggests which libraries to add to your build.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.