5 messages in com.mysql.lists.win32Re: developing clients in C with Dev-C++
FromSent OnAttachments
Tor Erling Unander29 Aug 2002 02:09 
Andre Moll29 Aug 2002 03:55 
Tor Erling Unander29 Aug 2002 06:39 
Tor Erling Unander29 Aug 2002 06:45 
Andre Moll29 Aug 2002 22:38 
Subject:Re: developing clients in C with Dev-C++
From:Tor Erling Unander (tor.@c2i.net)
Date:08/29/2002 02:09:00 AM
List:com.mysql.lists.win32

Developing clients in C with Dev-C++ is exactly what I am trying, too. However, this seems to be difficult and I need help.

1. The problem: libmysqlclient.lib contained in the Win distribution is
compiled using MSVC. You cannot link a MSVC static library into GCC code. This problem
has previously been addressed by Peter Campbell in the message "Compiling DLL on
windows: undefined reference errors during linking?" in the mysql list. Can
anyone confirm that this is right?

2. I do not have Phillip Blevins' problem: mysql.h compiles OK (Have you
included windows.h first?), but I get the abovementioned linker problems. I
have not started wading through the GCC documentation to find a solution to the
linker problems. Is there a chance that this will be successful?

3. The obvious solution is to compile the libmysqlclient library myself using
GCC. However, this seems to be an nearly impossible task. The win32 version of
the source code seems to assume that MSVC is used. Can anyone comment on this?

I would really like to use GCC to make MYSQL clients, but help is required.
Wouldn't it be nice to compile MYSQL code for windows without using a Microsoft
tool?

Thanks, Tor Erling Unander Trondheim, Norway

=========================================================

Hi, Theoretically it should work.What kind of errors occurs ? The mailing archive (searchable) is on http://list.mysql.com (wise thing).

Regards,

Gelu

_____________________________________________________ G.NET SOFTWARE COMPANY

Permanent e-mail address : gg@gonetsoftware.com gelu@yahoo.com

Hello has anyone used Bloodshed Dev-C++ to create a client for the windows platform. I am trying to create a cgi program in C that will connect to mysql and am unable to compile. gives me lots of errors from the mysql.h include file.Works on linux and solaris but won't compile on windows using DEV-C++ or Visual C++ 6.0 . Also is the email list archived anywhere?

thanks,