Re: [gnome-db] Compiling with MinGW under MSYS



2009/10/12 Brecht Sanders <brecht sanders org>:
>
> Hi,
> I just tried to compile both new releases (4.05 and 4.1.3) and both fail
> with the output below.
> I'm on the official MinGW 4.4.0.
> The errors mention missing files, but the names of these files are identical
> for both libgda 4.05 and 4.1.3.
> Any idea what is happening?
>
>
> I don't know. However it looks like all the reported missing files are
> actually flags that are passed on the command line, so you can try
> removing those flags, and then see why there are there (specially if
> they are only present for the MySQL provider).
>
>
> You're right!
> Whe I replace the line below in providers/mysql/Makefile:
>     MYSQL_CFLAGS = "-I/mingw/include/mysql" "-D_WINDOWS" "/MT" "/Zi" "/O2"
> "/Ob1" "/D" "NDEBUG" "-DDBUG_OFF" "/wd4996"
> with:
>     MYSQL_CFLAGS = "-I/mingw/include/mysql" "-D_WINDOWS" "-DNDEBUG"
> "-DDBUG_OFF"
> it does compile nicely.
> Any idea why it uses these Windows-style parameters (using slash)?

No...

>
> Now I have linking problems though:
> Creating library file:
> .libs/libgda-mysql.dll.a.libs/gda-mysql-parser.o:gda-mysql-parser.c:(.text+0xdf):
> undefined reference to `gda_lemon_mysql_parserTrace'

This function is defined in the (automatically generated) parser.c
file in providers/mysql. Can you check the file not missing, and if
it's there that the mentionned function is present? If so, then can
you also check the parser.o file is there
and contains the symbol?

Vivien


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]