[postgis-devel] [PostGIS] #1668: ST_AsText, ST_AsEWKT under Windows 64-bit PostGIS 64-bit is all screwy

PostGIS trac at osgeo.org
Tue Mar 13 05:03:35 PDT 2012


#1668: ST_AsText, ST_AsEWKT under Windows 64-bit PostGIS 64-bit is all screwy
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.0
Component:  postgis  |     Version:  trunk        
 Keywords:  mingw64  |  
---------------------+------------------------------------------------------

Comment(by mcayland):

 Hang on guys, wait a second. MingW already comes with a set of wrappers
 around the MSVCRT routines that aren't 100% compliant which can get
 substituted at compile time to gain the correct behaviour if we need it.
 Hence we shouldn't need to be adding our own versions of functions like
 this to the repository until the point where people want to build this
 stuff on other compilers, e.g. MSVC.

 The patch referenced by Regina above suggests that we can enable the MingW
 wrappers for broken MSVCRT functions by simply adding
 "-D__USE_MINGW_ANSI_STDIO" to both the compile/link command line - see
 some of the notes at
 http://sourceforge.net/project/shownotes.php?release_id=24832 for further
 information.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1668#comment:32>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list