hi there

#include "stdafx.h"
#include <iostream>
#include <mysql.h>

int _tmain(int argc, _TCHAR* argv[])
{
	MYSQL *con;
	mysql_real_connect(con, "localhost", "alakazam","username","password",0,NULL,0);

}

Error IntelliSense: identifier "SOCKET" is undefined in file mysql_com.h

how should i fix it?!!

Recommended Answers

All 3 Replies

Where did you get this mysql.h?

form Mysql includes bt never mind fixed :)

Ah I didn't realize they shipped a c++ API with MySql. Can you please how you fixed it and then mark the thread as solved?

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.