Enabling Strict ANSI compile?
Hi all,
I’m not very familiar with compile time options and I’m not sure how to proceed.
For my project I want a function similar to ftoa (float to ascii), and I found in stdlib.h:
char * _EXFUN(gcvt,(double,int,char *));
char * _EXFUN(gcvtf,(float,int,char *));
char * _EXFUN(fcvt,(double,int,int *,int *));
char * _EXFUN(fcvtf,(float,int,int *,int *));
char * _EXFUN(ecvt,(double,int,int *,int *));
char * _EXFUN(ecvtbuf,(double, int, int*, int*, char *));
char * _EXFUN(fcvtbuf,(double, int, int*, int*, char *));
char * _EXFUN(ecvtf,(float,int,int *,int *));
char * _EXFUN(dtoa,(double, int, int, int *, int*, char**));
All of which I would like to try, but they’re enclosed within #ifndef STRICT_ANSI.
So how do I compile as strict ansi? What I’ve tried so far is to create a copy of debug configuration and add “ansi” (also tried -ansi) as build variable under Project properties -> C/C++ Build -> Build Variables. Did not make any difference, still get the “no reference to function found”.
Thank you.