I have changed the problem according to this url:
I am following this url to retype everything. I have take the long-path
with these *.h. My error is now left to 3. I have attached these files in
*gif ( with <----- pointing to its line #) for your inspection.
Hope u can help to start the "First C++ with mysql". I have not able to find
C++ or visual C++ with mysql.
ompiler: Default compiler
g++.exe "C:\Dev-Cpp\test2.cpp" -o
C:\Dev-Cpp\test2.exe" -O3 -pg -g3 -I"C:\DEV-CPP\include" -I"C:\Dev-Cpp\i
nclude\c++\backward" -I"C:\Dev-Cpp\include\mysql" -I"C:\DEV-CPP\include"
-I"C:\DEV-CPP\include\c++" -I"C:\Dev-Cpp\include\mysql" -I"C:\Dev-Cpp\incl
ude\mysql\mysql\include" -I"C:\Dev-Cpp\include\mysql\include" -I"C:\Dev-Cp
In file included from C:/Dev-Cpp/include/mysql/mysql/include/mysql.h:71,
c:/Dev-Cpp/include/mysql/mysql/include/mysql_com.h:115: syntax error before
#define host "192.168.1.99"
#define username "myname"
#define password "mypassword"
#define database "buynsell"
conn = mysql_init(NULL);
unsigned int i;
mysql_query(conn,"SELECT * FROM buynsell where ID > 10000 ");
res_set = mysql_store_result(conn);
unsigned int numrows = mysql_num_rows(res_set);
while (( row = mysql_fetch_row(res_set)) != NULL)
for ( i=0; i < mysql_num_fields(res_set); i++)
printf("%s\n",row[i] != NULL ? row[i]: "NULL");
return 0 ;
please also examin a second in the next thread above this.