[GRASS-dev] C and C++ standards used by GRASS

Vaclav Petras wenzeslaus at gmail.com
Thu Mar 27 19:15:07 PDT 2014


Hello,

which C and C++ standards we are using? And which we want to use? Do we
even care? Since we can always fix it if somebody wants to build GRASS on
some other compiler than relatively new GCC.

For example, lib/gis build fails with gcc option -std=c89 [1] because of
missing `hypot` buildin [2].

I'm not sure if I already asked about it but I found only K&R function
discussion.

Thanks,
Vaclav

[1] http://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html#Other-Builtins
[2]
http://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html#C-Dialect-Options

PS: For Python, we have particular version specified (but for Python, it is
more critical).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20140327/7ccd02ac/attachment.html>


More information about the grass-dev mailing list