Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sun, 29 Feb 2004 12:00:24 +0100 From: "Gerrit P. Haase" Reply-To: "Gerrit @ cygwin" Organization: Esse keine toten Tiere Message-ID: <115176853932.20040229120024@familiehaase.de> To: Fabrice Marchal CC: "Gerrit @ cygwin" Subject: Re: Crash of mysql under cygwin with g++ 3.3.1 In-Reply-To: References: <15954380034 DOT 20040228015909 AT familiehaase DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Hallo Fabrice, Am Samstag, 28. Februar 2004 um 13:38 schriebst du: > Hallo Gerrit, > thanks for your help. I think I will now use your compiled libs instead of > those provided by the MYSQL installer. > I still have a couple question if I want to recompile myself the > libraries: > 1) as I understand, the mysqlclient.a are compiled from the MYSQL source > tree Yes. > 2) where does the cygmysqlclient.dll library come from? Is it also > compiled from the MYSQL source tree? Yes, this is the shared library which is created from the MySQL sources, the libmysqlclient.a is the static archive created from the same sources and the libmysqlclient.dll.a is the import library used to link executables against the shared runtime library. > 3) if I want to ship my MYSQL client that has been linked with > libmysqlclient.a, I need cygwin.dll because my client is compiled under > cygwin. If I am right I need to ship also cygmysqlclient.dll. Since the > customer will have MYSQL installed, I am afraid that there could be a > conflict with HIS libMySQL.dll, is that possible? If you link against the static archive (libmysqlclient.a), you won't need the DLL, if you link with `-L/usr/lib/mysql -lmysqlclient`, the import library (libmysqlclient.dll.a) is picked at first by the linker and the executable is finally linked against the shared library. There should be no conflicts. To be safe, tell your users that you deliver a cygwin1.dll and that it is not possible to use two Cygwin runtime libraries at the same time. Gerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/