| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
| Date: | Sat, 15 Dec 2001 01:22:25 +0200 (WET) |
| From: | Andris Pavenis <pavenis AT lanet DOT lv> |
| X-Sender: | pavenis AT ieva06 |
| To: | =?windows-1257?Q?Ari-Matti_Lepp=E4nen?= <ari-matti DOT leppanen AT tut DOT fi> |
| Cc: | djgpp AT delorie DOT com |
| Subject: | Re: Compiling problem (cmath) |
| In-Reply-To: | <9vdmf2$844$2@news.cc.tut.fi> |
| Message-ID: | <Pine.A41.4.05.10112150117480.31440-100000@ieva06> |
| MIME-Version: | 1.0 |
| Reply-To: | djgpp AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
On Fri, 14 Dec 2001, Ari-Matti Leppänen wrote: > Hi > > I'm compiling with gcc 3.0.2. With the following command line I get 17 > undeclared functions in std_cmath.h. Any advice? > > --- cut ---- > gcc -ansi -pedantic -Wall -W -O2 -c Tulo.cc > In file included from c:/djgpp/lang/cxx-v3/cmath:31, > from Tulo.cc:4: > c:/djgpp/lang/cxx-v3/bits/std_cmath.h: In function `float std::acos(float)': > c:/djgpp/lang/cxx-v3/bits/std_cmath.h:95: `::acosf' undeclared (first use > this > function) > --- cut ---- > Confirmed with my build of gcc-3.1 20011205 (experimental). acosf and similar functions are excluded from math.h by specifying -ansi. Should it be so? There were not in earlier updates of C standard but how it is now? Andris
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |