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

Where did you get this mysql.h?

Jump to Post

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 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.