[Gdal-dev] myql build on windows problem

Yewondwossen Assefa assefa at dmsolutions.ca
Wed Nov 16 10:17:32 EST 2005


Hi There,

  I was trying to build the OGR mysql extension using MS Visual .net 
2003. I am getting errors that I am not able to correct. Does someone 
had these errors previuosly and know what the problem might be.

Thanks :

Here is my configuation :
   - gdal 1.3.1
   - mysql 4.1.7

Here is the what I get :

  D:\projects\gdal-1.3.1\ogr\ogrsf_frmts>cd mysql   && nmake /NOLOGO /f 
makefile.vc   && cd ..
	cl /nologo /MD /GX /Zi /Fd..\..\..\gdal.pdb -I..\..\..\port 
-I..\..\..\ogr -I..\..\..\gcore  -I..\..\..\alg -I.. -I..\.. 
-Id:\projects\mysql-4.1.7\include /c ogrmysqllayer.cpp
ogrmysqllayer.cpp
d:\projects\gdal-1.3.1\port\cpl_config.h(37) : warning C4005: 
'HAVE_FLOAT_H' : macro redefinition
         d:\projects\mysql-4.1.7\include\config-win.h(287) : see 
previous definition of 'HAVE_FLOAT_H'
C:\Program Files\Microsoft Visual Studio .NET 
2003\Vc7\include\xutility(168) : error C2766: explicit specialization; 
'std::iterator_traits<std::_Bool>' has already been defined
C:\Program Files\Microsoft Visual Studio .NET 
2003\Vc7\include\xutility(335) : error C2084: function 
'std::_Scalar_ptr_iterator_tag std::_Ptr_cat(std::_Bool *,std::_Bool *)' 
already has a body
         C:\Program Files\Microsoft Visual Studio .NET 
2003\Vc7\include\xutility(245) : see previous definition of '_Ptr_cat'
C:\Program Files\Microsoft Visual Studio .NET 
2003\Vc7\include\xutility(341) : error C2084: function 
'std::_Scalar_ptr_iterator_tag std::_Ptr_cat(const std::_Bool 
*,std::_Bool *)' already has a body
         C:\Program Files\Microsoft Visual Studio .NET 
2003\Vc7\include\xutility(251) : see previous definition of '_Ptr_cat'
C:\Program Files\Microsoft Visual Studio .NET 
2003\Vc7\include\ostream(228) : error C2535: 
'std::basic_ostream<_Elem,_Traits>::_Myt 
&std::basic_ostream<_Elem,_Traits>::operator <<(std::_Bool)' : member 
function already defined or declared
         C:\Program Files\Microsoft Visual Studio .NET 
2003\Vc7\include\ostream(154) : see declaration of 
'std::basic_ostream<_Elem,_Traits>::operator`<<''
         C:\Program Files\Microsoft Visual Studio .NET 
2003\Vc7\include\ostream(545) : see reference to class template 
instantiation 'std::basic_ostream<_Elem,_Traits>' being compiled
C:\Program Files\Microsoft Visual Studio .NET 
2003\Vc7\include\ostream(228) : error C2535: 
'std::basic_ostream<_Elem,_Traits>::_Myt 
&std::basic_ostream<_Elem,_Traits>::operator <<(std::_Bool)' : member 
function already defined or declared
         with
         [
             _Elem=wchar_t,
             _Traits=std::char_traits<wchar_t>
         ]
         C:\Program Files\Microsoft Visual Studio .NET 
2003\Vc7\include\ostream(154) : see declaration of 
'std::basic_ostream<_Elem,_Traits>::operator`<<''
         with
         [
             _Elem=wchar_t,
             _Traits=std::char_traits<wchar_t>
         ]
         C:\Program Files\Microsoft Visual Studio .NET 
2003\Vc7\include\ostream(561) : see reference to class template 
instantiation 'std::basic_ostream<_Elem,_Traits>' being compiled
         with
         [
             _Elem=wchar_t,
             _Traits=std::char_traits<wchar_t>
         ]
C:\Program Files\Microsoft Visual Studio .NET 
2003\Vc7\include\ostream(228) : error C2535: 
'std::basic_ostream<_Elem,_Traits>::_Myt 
&std::basic_ostream<_Elem,_Traits>::operator <<(std::_Bool)' : member 
function already defined or declared
         with
         [
             _Elem=char,
             _Traits=std::char_traits<char>
         ]
         C:\Program Files\Microsoft Visual Studio .NET 
2003\Vc7\include\ostream(154) : see declaration of 
'std::basic_ostream<_Elem,_Traits>::operator`<<''
         with
         [
             _Elem=char,
             _Traits=std::char_traits<char>
         ]
         C:\Program Files\Microsoft Visual Studio .NET 
2003\Vc7\include\ostream(603) : see reference to class template 
instantiation 'std::basic_ostream<_Elem,_Traits>' being compiled
         with
         [
             _Elem=char,
             _Traits=std::char_traits<char>
         ]
C:\Program Files\Microsoft Visual Studio .NET 
2003\Vc7\include\ostream(604) : fatal error C1903: unable to recover 
from previous error(s); stopping compilation


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------




More information about the Gdal-dev mailing list