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

Brecht Sanders <[email protected]>
Newsgroups gmane.comp.gnome.db
Message-ID <[email protected]>
>> 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)?

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'

_______________________________________________
gnome-db-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-db-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.