compiling problems
I'm using Dev-Cpp (in c:\dev-cpp), mysql 4.0 (in c:\mysql), mysql++ 1.7 (in c:\mysql++)
I can't compile. for example:
#include <iostream.h>
#include <mysql++.h>
int main(){
system ("pause");
}
gives me the following errors (i think the library isn't linked or something like that).
I'm not a programmer, I just have fun doing some stuffs programming.
I really need to connect my c++ to mysql.
plaese i need help.
Compile log:
c:/mysql++/include/defs.h:4:19: mysql.h: No such file or directory
In file included from c:/mysql++/include/mysql++:8,
from c:/mysql++/include/mysql++.h:2,
from Untitled1.cpp:2:
c:/mysql++/include/defs.h:14: syntax error before `;' token
In file included from c:/mysql++/include/coldata1.hh:9,
from c:/mysql++/include/mysql++:11,
from c:/mysql++/include/mysql++.h:2,
from Untitled1.cpp:2:
c:/mysql++/include/type_info1.hh:4:19: mysql.h: No such file or directory
In file included from c:/mysql++/include/coldata1.hh:9,
from c:/mysql++/include/mysql++:11,
from c:/mysql++/include/mysql++.h:2,
from Untitled1.cpp:2:
c:/mysql++/include/type_info1.hh:14: friend declaration requires class-key,
i.e. `friend struct mysql_type_info'
c:/mysql++/include/type_info1.hh:15: friend declaration requires class-key,
i.e. `friend struct mysql_ti_sql_type_info_lookup'
c:/mysql++/include/type_info1.hh:44: friend declaration requires class-key,
i.e. `friend struct mysql_type_info'
c:/mysql++/include/type_info1.hh:72: `enum_field_types' was not declared in
this scope
c:/mysql++/include/type_info1.hh:72: parse error before `,' token
c:/mysql++/include/type_info1.hh:86: parse error before `t'
c:/mysql++/include/type_info1.hh:89: parse error before `&' token
c:/mysql++/include/type_info1.hh:153: parse error before `t'
c:/mysql++/include/type_info1.hh:158: parse error before `&' token
c:/mysql++/include/type_info1.hh:160: ISO C++ forbids declaration of `_length'
with no type
c:/mysql++/include/type_info1.hh:160: `f' was not declared in this scope
c:/mysql++/include/type_info1.hh:160: ISO C++ forbids declaration of `
_max_length' with no type
c:/mysql++/include/type_info1.hh:160: `f' was not declared in this scope
c:/mysql++/include/type_info1.hh:161: parse error before `}' token
In file included from c:/mysql++/include/row1.hh:12,
from c:/mysql++/include/compare1.hh:6,
from c:/mysql++/include/mysql++:12,
from c:/mysql++/include/mysql++.h:2,
from Untitled1.cpp:2:
c:/mysql++/include/resiter1.hh:29: wrong number of template arguments (2,
should be 1)
C:/Dev-Cpp/include/c++/bits/stl_iterator.h:91: provided for `template<class
_Iterator> class std::reverse_iterator'
c:/mysql++/include/resiter1.hh:29: ISO C++ forbids declaration of `
reverse_iterator' with no type
c:/mysql++/include/resiter1.hh:30: wrong number of template arguments (2,
should be 1)
C:/Dev-Cpp/include/c++/bits/stl_iterator.h:91: provided for `template<class
_Iterator> class std::reverse_iterator'
c:/mysql++/include/resiter1.hh:30: ISO C++ forbids declaration of `
const_reverse_iterator' with no type
In file included from c:/mysql++/include/vallist1.hh:4,
from c:/mysql++/include/row1.hh:13,
from c:/mysql++/include/compare1.hh:6,
from c:/mysql++/include/mysql++:12,
from c:/mysql++/include/mysql++.h:2,
from Untitled1.cpp:2:
c:/mysql++/include/manip1.hh:4:19: mysql.h: No such file or directory
In file included from c:/mysql++/include/manip1.hh:10,
from c:/mysql++/include/vallist1.hh:4,
from c:/mysql++/include/row1.hh:13,
from c:/mysql++/include/compare1.hh:6,
from c:/mysql++/include/mysql++:12,
from c:/mysql++/include/mysql++.h:2,
from Untitled1.cpp:2:
c:/mysql++/include/sql_query1.hh:30: friend declaration requires class-key,
i.e. `friend struct MysqlQuery'
c:/mysql++/include/sql_query1.hh:121: friend declaration requires class-key,
i.e. `friend class SQLQueryParms'
In file included from c:/mysql++/include/manip1.hh:12,
from c:/mysql++/include/vallist1.hh:4,
from c:/mysql++/include/row1.hh:13,
from c:/mysql++/include/compare1.hh:6,
from c:/mysql++/include/mysql++:12,
from c:/mysql++/include/mysql++.h:2,
from Untitled1.cpp:2:
c:/mysql++/include/set1.hh:12: parse error before `>' token
c:/mysql++/include/set1.hh:18: parse error before `&' token
c:/mysql++/include/set1.hh:18: `void operator()(...)' must be a nonstatic
member function
c:/mysql++/include/set1.hh:18: confused by earlier errors, bailing out