|
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 |