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

2 messages Options
Embed this post
Permalink
Glynn Clements

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

Reply Threaded More More options
Print post
Permalink

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 <[hidden email]>
_______________________________________________
grass-stats mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-stats
Glynn Clements

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

Reply Threaded More More options
Print post
Permalink

Marco Pasetti wrote:

> > 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
>
> perfect! thanks
>
> windows-client-compiling.html says: "You can either link your code with the
> dynamic libmysql.lib library, which is just a wrapper to load in
> libmysql.dll on demand"
>
> I will try this before to add #include <my_global.h> to grass sources

Obviously, that isn't going to help.

What you subsequently choose to link will have no effect upon any
compilation issues. Libraries only matter if you actually get as far
as linking, and right now you aren't getting as far as linking.

--
Glynn Clements <[hidden email]>
_______________________________________________
grass-stats mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-stats