MySQL Forums
Forum List  »  Connector/C++

Problem with VS2008 and C++ Connector
Posted by: Sami Kallio
Date: June 16, 2009 10:22AM

I can't seem to get my Windows client to connect to my Linux server (MySQL 5.0.75-Ubuntu 10.2). For some reason even the Driver output seems incorrect so maybe I'm using wrong DLL versions? I installed MySQL 5.1 for this developer machine to get the Windows libmysql.dll.

I tried to compile in Unicode, Multibyte and Not Set modes for 'Character Set'.

Simple piece of code:

if ((m_driver = get_driver_instance()) == NULL) return false;
cout << m_driver->getName() << endl;
cout << m_driver->getMajorVersion() << "." << m_driver->getMinorVersion() << "." << m_driver->getPatchVersion() << endl;


Windows output:

▲ ▼ ☺
1.0.5

Linux output:

MySQL Connector C++ (libmysql)
1.0.5

Any ideas?

Options: ReplyQuote


Subject
Views
Written By
Posted
Problem with VS2008 and C++ Connector
3955
June 16, 2009 10:22AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.