|
From: Luke D. <cod...@ho...> - 2003-02-05 09:26:35
|
----- Original Message ----- From: "Pac" <pa...@tu...> To: <min...@li...> Sent: Wednesday, February 05, 2003 4:20 AM Subject: Re: [Mingw-users] How to compile MySQLC++ > Le 04/02/03 à 09:34, Luke Dunstan a écrit: > Luke> > Luke> > Actually with MySQLC++ for VisualC++ see > Luke> > (http://www.mysql.com/downloads/api-mysql++.html) > Luke> > Luke> If you are using the the base 1.7.9 source it looks like you will have to > Luke> apply the "patch for GCC 3.0" followed by a patch for GCC 3.2 (I am assuming > Luke> you are using GCC 3.2). > > yes I am but see below. > > :=) > > > Which other package do I need to compile it ? > (I've already, mingw, mingw-utils and msysDTK.) > > Do I need a source version for mysql server ? Apparently you need the "MySQL client library", but I don't know much more than that. Perhaps if you ask on a mysql mailing list somebody will know more about this. You might be able to get this client library from the MSVC binary distribution of mysql++ 1.7.1. > Luke> > when I execute the gaw scrip I've got : > Luke> > > Luke> > mysqlpp.dsw > Luke> > mysqlpp.dsw: Global: unknown section > Luke> > Luke> If the makefile works you can ignore this. > Luke> > > Makefile does not work as you saw. From what I saw there is probably nothing wrong with the Makefile, because the problem is in the source code. > Luke> The only way to find out why this error occurs is to look at the source > Luke> code. It is likely caused by using non-standard C++ features, which could be > Luke> why the patches are needed for GCC 3.2. > > > I've tried the sources' package. > As is it written in the README file, I have to run > > autoconf which outputs > > "autoconf 2.13 is required for this script" You should not need to run autoconf if the source is packaged properly. Anyway, if you are using the MSVC makefile then autoconf is irrelevant. > > In fact I've got 2.11 where is autoconf 2.13 for mingw ? I have installed msysDTK-1.0.1 and it reports version 2.56, but it will probably be a lot easier if you keep trying with the MSVC-based makefile if possible. > > and how do I apply a patch ? 1. Extract the mysql++-1.7.9 source into a directory 2. Extract mysqlpp-gcc-3.0.patch into the same directory 3. Extract mysql++-gcc-3.2.patch into the same directory 4. cd to the directory (in MSYS) 5. Type: patch -p 1 mysqlpp-gcc-3.0.patch 6. Type: patch -p 1 mysql++-gcc-3.2.patch > > Thanks for helping > > -- > R.Pac Luke |