aanchal@aanchal-Inspiron-3542:~$ sudo apt-get install libmysqlc++-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libmysqlc++-dev
E: Couldn't find any package by regex 'libmysqlc++-dev'
'universe'options is enabled in the software center.
well thanks everyone i typed the command wrong.it was installed successfully. and i tried running the program test.cpp:
#include <iostream>
#include <mysql.h>
using namespace std;
MYSQL *connection, mysql;
MYSQL_RES *result;
MYSQL_ROW row;
int query_state;
int main() {
return 0;
}
using the command:
g++ -o test test.cpp -L/usr/include/mysql -lmysqlclient -I/usr/include/mysql
it didnt give me any error message. so does that mean everything's working fine?