Ticket #497 (new defect)
geos-config is a bit confused
|Reported by:||frankie||Owned by:||geos-devel@…|
while it is quite clear that the C stable API is the way to go for development, and should be preferred to the C++ API, the geos-config tool is quite confused (if not wrong) about that.
I suggest you change the --libs to provide -lgeos_c (which is sane and safe for most programs) and add --cclibs for others. Note that it is probably a good thing adding --static-libs and --static-cclibs (i.e. -lgeos_c -lgeos -lm and -lgeos -lm) to simplify dependency providing for the --static case.