[Proj] CSLTokenizeStringComplex/CSLCount/CSLDestroy

Eric Miller EMiller at dfg.ca.gov
Thu Jan 19 13:53:36 EST 2006


This appears to be a GDAL question, not a PROJ question.  Try posting to gdal-dev at lists.maptools.org.  BTW, you don't want to live with those warnings.  They indicate potentially program crashing issues at runtime.  Implicit functions have a signature of "int function()"; hence, your second warning.  Also, the compiler can't verify you're calling implicit functions with the correct type or number of arguments.

>>> "Curt, WE7U" <archer at eskimo.com> 1/19/2006 10:01 AM >>>

I upgraded to OpenSuSE 10.0 this week, giving me gcc-4.0 instead of
gcc-3.something.  I'm now getting these warnings:


  warning: implicit declaration of function `CSLTokenizeStringComplex'
  warning: assignment makes pointer from integer without a cast
  warning: implicit declaration of function `CSLCount'
  warning: implicit declaration of function `CSLDestroy'


This bit of code parses a projection definition into tokens for
pj_init() and then initializes the projection.  It appears that I
originally used a private API from "cpl_csv.h".

Is there a public API I can use to do the same thing?  I see
"cpl_serv.h" called out in "geo_tiffp.h", but that's also a private
API.

I prefer to get rid of all compiler warnings so that real
errors/warnings are more apparent.  For the moment I can live with
this if there are no alternatives.  I _can_ get rid of the warnings
on Linux by adding an #include at the top of the file, but then the
program doesn't compile under Cygwin.

--
Curt, WE7U.   APRS Client Comparisons: http://www.eskimo.com/~archer 
"Lotto:    A tax on people who are bad at math." -- unknown
"Windows:  Microsoft's tax on computer illiterates." -- WE7U
"The world DOES revolve around me:  I picked the coordinate system!"
_______________________________________________
Proj mailing list
Proj at lists.maptools.org 
http://lists.maptools.org/mailman/listinfo/proj




More information about the Proj mailing list