Hi, thank you for your replies. But i still can not compile the code. I try compile a
example from the example directory from tar.gz.
i compile with:
> gcc custom1.cc -lmysqlpp -I /usr/include/mysql++ -o ej
and i obtain too much errors:
En el fichero incluído de /usr/include/mysql++/defs.hh:7,
de /usr/include/mysql++/mysql++.hh:3,
de custom1.cc:4:
/usr/include/mysql++/mysql.h:57:23: mysql_com.h: No existe el fichero o el directorio
/usr/include/mysql++/mysql.h:58:27: mysql_version.h: No existe el fichero o el directorio
In file included from /usr/include/mysql++/defs.hh:7,
from /usr/include/mysql++/mysql++.hh:3,
from custom1.cc:4:
/usr/include/mysql++/mysql.h:87: error: use of enum `enum_field_types' without
previous declaration
/usr/include/mysql++/mysql.h:87: error: ISO C++ prohíbe la declaración de `
type' sin tipo
/usr/include/mysql++/mysql.h:110:22: my_alloc.h: No existe el fichero o el directorio
/usr/include/mysql++/mysql.h:116: error: 'MEM_ROOT' is used as a type, but is
not defined as a type.
/usr/include/mysql++/mysql.h:168: error: 'NET' is used as a type, but is not
defined as a type.
/usr/include/mysql++/mysql.h:174: error: 'MEM_ROOT' is used as a type, but is
not defined as a type.
/usr/include/mysql++/mysql.h:215: error: 'MEM_ROOT' is used as a type, but is
not defined as a type.
/usr/include/mysql++/mysql.h:235: error: 'NET' is used as a type, but is not
defined as a type.
/usr/include/mysql++/mysql.h:426: error: use of enum `enum_server_command'
without previous declaration
/usr/include/mysql++/mysql.h:427: error: ISO C++ prohíbe la declaración de `
command' sin tipo
In file included from /usr/include/mysql++/coldata1.hh:8,
from /usr/include/mysql++/mysql++.hh:6,
from custom1.cc:4:
/usr/include/mysql++/type_info1.hh:69: error: `enum_field_types' was not
declared in this scope
/usr/include/mysql++/type_info1.hh:69: error: error sintáctico before `,'
token
/usr/include/mysql++/type_info1.hh:83: error: error sintáctico before `t'
/usr/include/mysql++/type_info1.hh:150: error: error sintáctico before `t'
/usr/include/mysql++/type_info1.hh: En constructor `
mysql_type_info::mysql_type_info(const MYSQL_FIELD&)':
/usr/include/mysql++/type_info1.hh:156: error: `UNSIGNED_FLAG' undeclared
(first use this function)
/usr/include/mysql++/type_info1.hh:156: error: (Each undeclared identifier is
reported only once for each function it appears in.)
/usr/include/mysql++/type_info1.hh:156: error: `NOT_NULL_FLAG' undeclared
(first use this function)
En el fichero incluído de /usr/include/c++/3.3.3/backward/strstream:51,
de /usr/include/mysql++/datetime1.hh:5,
de /usr/include/mysql++/manip1.hh:4,
de /usr/include/mysql++/vallist1.hh:6,
de /usr/include/mysql++/row1.hh:11,
de /usr/include/mysql++/compare1.hh:6,
de /usr/include/mysql++/mysql++.hh:7,
de custom1.cc:4:
/usr/include/c++/3.3.3/backward/backward_warning.h:32:2: aviso: #warning This file
includes at least one deprecated or antiquated header. Please consider using one of the
32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting
the <X> header for the <X.h> header for C++ includes, or <sstream>
instead of the deprecated header <strstream.h>. To disable this warning use
-Wno-deprecated.
i have installed the mysql++-1.7.14-1.fc2.i386.rpm.
Can you tell me anything? Thanks.