|
From: Romain P. <pa...@tu...> - 2003-02-03 09:07:00
|
Hi all, I've just downloaded the MySQLC++ sources from www.mysql.com and I can not compile it. First, Do I have to install autoconf and automake (and perl where do I get it ?) or is there an another way to compile it or to use it with MinGW ? An another question, does anybody use the MySQLC++ for Visual C++, include files and dll with MinGW. I can not use it the compiler complains about many many things Best regards R.Pac |
|
From: Earnie B. <ear...@ya...> - 2003-02-03 12:37:41
|
Romain Pacanowski wrote: > > Hi all, > > > > I've just downloaded the MySQLC++ sources from www.mysql.com > and I can not compile it. > > First, Do I have to install autoconf and automake (and perl where do I > get it ?) or is there an another way to compile it or to use it with > MinGW ? > > An another question, does anybody use the MySQLC++ for Visual C++, > include files and dll with MinGW. I can not use it the compiler > complains about many many things > > Ooo, your a brave soul. :) I haven't tried that one yet. :-D You as an end user of a package should not need autoconf and other autotools; but, that assumes the package maintainer knows what they're doing. If you need to execute a configure script then you'll need MSYS, and I'll suggest the snapshot, see http://www.mingw.org/download.shtml. If you have a .dsw VC++ style project file then you execute the dsw2mak gawk script you can find in the mingw-utils package. If you really need autoconf, etc then you need the msysDTK package. Earnie. |
|
From: Pac <pa...@tu...> - 2003-02-03 13:15:59
|
Le 03/02/03 à 07:37, Earnie Boyd a écrit: Earnie> Ooo, your a brave soul. :) I haven't tried that one yet. :-D Earnie> Earnie> You as an end user of a package should not need autoconf and other Earnie> autotools; but, that assumes the package maintainer knows what they're Earnie> doing. If you need to execute a configure script then you'll need MSYS, I did intall it. Earnie> and I'll suggest the snapshot, see http://www.mingw.org/download.shtml. Earnie> If you have a .dsw VC++ style project file then you execute the Earnie> dsw2mak gawk script you can find in the mingw-utils package. If you what does this script do ? Earnie> really need autoconf, etc then you need the msysDTK package. thanks -- R.Pac |
|
From: Earnie B. <ear...@ya...> - 2003-02-03 14:02:05
|
Pac wrote: > > Earnie> and I'll suggest the snapshot, see http://www.mingw.org/download.shtml. > Earnie> If you have a .dsw VC++ style project file then you execute the > Earnie> dsw2mak gawk script you can find in the mingw-utils package. If you > > what does this script do ? > <quote> # Features: # - generation of GUI applications (including resource files), # DLLs, console applications and static libraries # - translations of the most common compiler and linker options # - conversion of workspace files (.dsw) and all associated # projects files (.dsp) generating all necessary Makefiles # - handling of nested !IF, !ELSEIF and !ENDIF maintaining the # same build configurations as the original project # - automatic generation of the dependencies # </quote> And in case it's not obvious enough, it generates a file for make to execute upon. So for foo.dsp you get foo.mak after executing this script. Earnie. |
|
From: Pac <pa...@tu...> - 2003-02-03 16:18:56
|
Le 03/02/03 à 09:02, Earnie Boyd a écrit: Earnie> And in case it's not obvious enough, it generates a file for make to Earnie> execute upon. So for foo.dsp you get foo.mak after executing this script. it seems very good but I will try to compile the MySQLC++ sources anyway. (if it is possible under cygwin it should be possible with MinGW !!!) See you -- R.Pac |
|
From: Pac <pa...@tu...> - 2003-02-03 16:59:02
|
Le 03/02/03 à 09:02, Earnie Boyd a écrit: Earnie> And in case it's not obvious enough, it generates a file for make to Earnie> execute upon. So for foo.dsp you get foo.mak after executing this script. Where is the documentation for the dsw2mak script ? Actually with MySQLC++ for VisualC++ see (http://www.mysql.com/downloads/api-mysql++.html) when I execute the gaw scrip I've got : mysqlpp.dsw mysqlpp.dsw: Global: unknown section mysqlpp.dsp then when I do make -f mysqlpp.mak make fails with this error: g++ -fexceptions -g -O0 -Imysql/include -DWIN32 -D_DEBUG -D_MBCS -D_LIB -o sqlplus/coldata.o -c sqlplus/coldata.cpp In file included from sqlplus/coldata1.hh:9, from sqlplus/coldata2.hh:5, from sqlplus/coldata3.hh:8, from sqlplus/coldata4.hh:6, from sqlplus/coldata.cpp:7: sqlplus/type_info1.hh:14: friend declaration requires class-key, i.e. `friend struct mysql_type_info' sqlplus/type_info1.hh:15: friend declaration requires class-key, i.e. `friend struct mysql_ti_sql_type_info_lookup' sqlplus/type_info1.hh:44: friend declaration requires class-key, i.e. `friend struct mysql_type_info' In file included from sqlplus/coldata4.hh:6, from sqlplus/coldata.cpp:7: sqlplus/coldata3.hh:13: no `mysql_ColData<Str>::operator MysqlNull<T, B>() const' member function declared in class `mysql_ColData<Str>' sqlplus/coldata3.hh:13: template definition of non-template ` mysql_ColData<Str>::operator MysqlNull<T, B>() const' make: *** [sqlplus/coldata.o] Error 1 any idea how could I fix this ? -- R.Pac |
|
From: Luke D. <cod...@ho...> - 2003-02-04 01:34:33
|
----- Original Message ----- From: "Pac" <pa...@tu...> To: "MinGW Users" <min...@li...> Sent: Tuesday, February 04, 2003 12:59 AM Subject: Re: [Mingw-users] How to compile MySQLC++ > Le 03/02/03 à 09:02, Earnie Boyd a écrit: > > Earnie> And in case it's not obvious enough, it generates a file for make to > Earnie> execute upon. So for foo.dsp you get foo.mak after executing this script. > > > Where is the documentation for the dsw2mak script ? The script is part of mingw-utils but as far as I know there is no documentation apart from in the script itself. > Actually with MySQLC++ for VisualC++ see > (http://www.mysql.com/downloads/api-mysql++.html) If you are using the the base 1.7.9 source it looks like you will have to apply the "patch for GCC 3.0" followed by a patch for GCC 3.2 (I am assuming you are using GCC 3.2). > > when I execute the gaw scrip I've got : > > mysqlpp.dsw > mysqlpp.dsw: Global: unknown section If the makefile works you can ignore this. > mysqlpp.dsp > > then when I do > > make -f mysqlpp.mak > > make fails with this error: > > g++ -fexceptions -g -O0 -Imysql/include -DWIN32 -D_DEBUG -D_MBCS > -D_LIB -o sqlplus/coldata.o -c sqlplus/coldata.cpp > In file included from sqlplus/coldata1.hh:9, > from sqlplus/coldata2.hh:5, > from sqlplus/coldata3.hh:8, > from sqlplus/coldata4.hh:6, > from sqlplus/coldata.cpp:7: > sqlplus/type_info1.hh:14: friend declaration requires class-key, i.e. `friend > struct mysql_type_info' The only way to find out why this error occurs is to look at the source code. It is likely caused by using non-standard C++ features, which could be why the patches are needed for GCC 3.2. > sqlplus/type_info1.hh:15: friend declaration requires class-key, i.e. `friend > struct mysql_ti_sql_type_info_lookup' > sqlplus/type_info1.hh:44: friend declaration requires class-key, i.e. `friend > struct mysql_type_info' > In file included from sqlplus/coldata4.hh:6, > from sqlplus/coldata.cpp:7: > sqlplus/coldata3.hh:13: no `mysql_ColData<Str>::operator MysqlNull<T, B>() > const' member function declared in class `mysql_ColData<Str>' > sqlplus/coldata3.hh:13: template definition of non-template ` > mysql_ColData<Str>::operator MysqlNull<T, B>() const' > make: *** [sqlplus/coldata.o] Error 1 > > any idea how could I fix this ? > > > -- > R.Pac Luke |
|
From: Pac <pa...@tu...> - 2003-02-04 20:19:26
|
Le 04/02/03 à 09:34, Luke Dunstan a écrit: Luke> Luke> ----- Original Message ----- Luke> From: "Pac" <pa...@tu...> Luke> To: "MinGW Users" <min...@li...> Luke> Sent: Tuesday, February 04, 2003 12:59 AM Luke> Subject: Re: [Mingw-users] How to compile MySQLC++ Luke> Luke> Luke> > Le 03/02/03 à 09:02, Earnie Boyd a écrit: Luke> > Luke> > Earnie> And in case it's not obvious enough, it generates a file for make Luke> to Luke> > Earnie> execute upon. So for foo.dsp you get foo.mak after executing this Luke> script. Luke> > Luke> > Luke> > Where is the documentation for the dsw2mak script ? Luke> Luke> The script is part of mingw-utils but as far as I know there is no Luke> documentation apart from in the script itself. 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 ? Luke> Luke> > 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. 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" In fact I've got 2.11 where is autoconf 2.13 for mingw ? and how do I apply a patch ? Thanks for helping -- R.Pac |
|
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 |
|
From: Pac <pa...@tu...> - 2003-02-05 16:38:36
|
Le 04/02/03 à 09:34, Luke Dunstan a écrit: 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. but those patches should be applied to the source package not to the MSVC ? -- R.Pac |
|
From: Luke D. <cod...@ho...> - 2003-02-06 01:34:47
|
----- Original Message ----- From: "Pac" <pa...@tu...> To: <min...@li...> Sent: Thursday, February 06, 2003 12:31 AM Subject: Re: [Mingw-users] How to compile MySQLC++ > Le 04/02/03 à 09:34, Luke Dunstan a écrit: > > > 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. > > but those patches should be applied to the source package not to the > MSVC ? > > > > -- > R.Pac If the MSVC source you are talking about is not the 1.7.9 source, then no you won't be able to patch the MSVC source. You could either modify the 1.7.1 source manually to make it work with GCC 3.2 or if you decide to use the patched 1.7.9 you will probably have to use "configure" with MSYS. Luke |