[GRASS-stats] Re: [GRASS-windows] Re: Build GRASS with MySQL support enabled

Glynn Clements glynn at gclements.plus.com
Wed Jul 23 09:34:09 EDT 2008


Marco Pasetti wrote:

> > ok, after some tricks and trials, configure worked; now I'm compiling... I 
> > hope it will work :)
> 
> unfortunately it didn't work :(
> I attacched the error messages as a txt file; I hope that someone else could 
> help us.

> gcc -I/usr/local/src/grass-6.3.0-test/dist.i686-pc-mingw32/include -I/usr/local/include -g -O2  -I/usr/local/include  -I/usr/local/mysql/include -I/usr/local/tcl-tk/include -I/usr/local/tcl-tk/include   -DPACKAGE=\"\" -I../../../lib/db/dbmi_driver -I/usr/local/src/grass-6.3.0-test/dist.i686-pc-mingw32/include -o OBJ.i686-pc-mingw32/create_table.o -c create_table.c
> In file included from C:/MSYS/local/mysql/include/mysql.h:72,
>                  from globals.h:1,
>                  from create_table.c:15:
> C:/MSYS/local/mysql/include/mysql_com.h:183: error: syntax error before "SOCKET"

I suspect that mysql.h expects you to have included some windows
headers (e.g. <windows.h> or <winsock.h>) beforehand.

Also:

http://dev.mysql.com/doc/refman/5.1/en/windows-client-compiling.html

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-stats mailing list