Alexander Hannemann wrote:
Hi,

I am trying to learn the MySQL C-Api and use PDuBois book.
Trying to compile the simple 'client1.h' code leads to an error
once the include 'mysql.h' statement' is reached:

SUSE Linux 8.2
Error message:
Intel Compiler 7.0
/usr/include/mysql/mysql.h(127): error: identifier "MEM_ROOT" is undefined
    MEM_ROOT alloc;
GCC:
error: 127:parse error before "MEM_ROOT"
It seems that MEM_ROOT is undefined.

Any hints ?

Thanks in advance

Alex




Look for a file my_alloc.h in /usr/include/mysq/
if it exists your include path for header is wrong (-I/usr/include/mysql something like this),
if not re-install all the header of mysql


--
Philippe Poelvoorde
COS Trading Ltd.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to