I know this is so basic but I cant seem to get my Static library made. The book I learned from told me to create a directory in C:\ and create folders then place the files needed in them. I dont know what files these are.. Well anyways it gave me the files I need on CD with a static lib and everything but I dont know how to include it. I did everything it says but it always gives me this 1 error
Compiling...
main.cpp
c:\library\include\defs.h(4) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
Error executing cl.exe.
main.obj - 1 error(s), 0 warning(s)
My source code is...
#include <iostream>
#include <iomanip>
#include <mysql++>
int main(void)
{
//Create a connection to the database
Connection Con("gamedata","127.0.0.1");
//Create a query object that is bound to our connection
Query query = con.query();
//Assign the query to that object
query << "Select * From paymentinfo";
//Store ressults from then query
Result res = query.store();
//Display the results to the console
//Show the field headings
cout.setf(ios::left);
cout << setw(6) << "id"
<<setw(10) << "playerid"
<<setw(20) << "datapaid"
<<setw(20) << "type"
<<setw(20) << "amount" <<end1;
Result::iterator i;
Row row;
//The result class has read-only random access iterator
for (i = res.begin(); i != res.end(); i++)
{
row = *i;
cout << setw(6) << row["id"]
<< setw(10) << row["playerid"]
<< setw(20) << row["datapaid"]
<< setw(20) << row["type"]
<< setw(20) << row["amount"] << end1;
}
return 1;
}
Compiling...
main.cpp
c:\library\include\defs.h(4) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory
Error executing cl.exe.
main.obj - 1 error(s), 0 warning(s)
My source code is...
#include <iostream>
#include <iomanip>
#include <mysql++>
int main(void)
{
//Create a connection to the database
Connection Con("gamedata","127.0.0.1");
//Create a query object that is bound to our connection
Query query = con.query();
//Assign the query to that object
query << "Select * From paymentinfo";
//Store ressults from then query
Result res = query.store();
//Display the results to the console
//Show the field headings
cout.setf(ios::left);
cout << setw(6) << "id"
<<setw(10) << "playerid"
<<setw(20) << "datapaid"
<<setw(20) << "type"
<<setw(20) << "amount" <<end1;
Result::iterator i;
Row row;
//The result class has read-only random access iterator
for (i = res.begin(); i != res.end(); i++)
{
row = *i;
cout << setw(6) << row["id"]
<< setw(10) << row["playerid"]
<< setw(20) << row["datapaid"]
<< setw(20) << row["type"]
<< setw(20) << row["amount"] << end1;
}
return 1;
}