|
Re: -ansi flag effects: msg#00257gcc.help
On Tuesday 27 May 2003 9:19 pm, Andrew Binkley wrote: ... > certain (logb, scalbn, log1p) math functions to work. I have determined ... > that this problem occurs only when I use the -ansi flag. If -ansi is used, These are not ANSI functions, so it's right that they should be excluded. If you also compile with -Wall (there is a more specific flag but I don't know what it is off hand), then the compiler will warn when you try to use a function that isn't prototyped. I recommend always using -Wall unless you are compiling someone else's code :) > results. If -ansi isn't used then there are no problems. Is there > documentation (I have come across some partial documentation, but nothing > exhaustive) on which functions the -ansi flag effects? If you are on a Unix system, see the man pages for the various functions; they should all include information on whether they are part of the ANSI standard or not. DJGPP's documentation also includes this; I don't know about MinGW or other systems. Hope that helps, Ben |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | -ansi flag effects: 00257, Andrew Binkley |
|---|---|
| Next by Date: | Trouble building an Intel to SPARC cross-compiler: 00257, Daniel Salomon |
| Previous by Thread: | -ansi flag effectsi: 00257, Andrew Binkley |
| Next by Thread: | Trouble building an Intel to SPARC cross-compiler: 00257, Daniel Salomon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |