|
From: David M. <dml...@co...> - 2005-05-10 06:12:58
|
To Eesh & Hariyanto. I am really not sure why but the mysql developers do not provide the .a files needed to compile programs with mingw. You have a few options from here: 1. Convert the .lib (MS ViusalC++) libraries to .a (mingw). Relatively simple but long and painful. Disadvantage is that this method can't produce static libraries (which to me kinda nulls out the reason I am using an EMBEDDED server). Som info on the topic can be found at: http://www.synnottsoftware.com/tutorials/mysqlwindows.php http://lists.mysql.com/win32/16919 2. Compile with cygwin (and be eternally dependent on the cygwin dll). Not a bad thing until you start distributing. 3. Cross compile. From what I have heard not a good thing to do in general if you plan to keep your sanity. 4. Build mysql (at least the libs) from scratch writing the makefile yourself (I can tell you right now using the Dev-C++ import MSVC++ project does not work with the project file from mysql). Even if one has a copy of Visual C++ and starting going through the dependency tree by hand you will find so my projects within the workspace that the libraries are dependent on that option 1 actually looks easy). Believe me I tried for a couple hours before getting fed up (I think it had more to do with the fact that I was using Visual Studio .NET) Hope this helps David McKen Hariyanto wrote: >I have error when compile in mysql_com.h, I want to download mysql under window there are 3 file : > >1. Windows Essentials (x86) 4.1.11 14.1M > MD5: dc331a3a3c9b151d3840dd2b4c47ed49 > >2. Windows (x86) 4.1.11 35.1M > MD5: b4b9d56bbf8139197f9c730c96c48595 > >3. Without installer (unzip in C:\) 4.1.11 36.2M > MD5: 6330f744f8a15cd9c3f6a70e023ce563 > >which one I must to download to develop program with glade and dev-cpp. >thx > > |