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 X-Sender: pavenis AT ieva06 To: =?windows-1257?Q?Ari-Matti_Lepp=E4nen?= Cc: djgpp AT delorie DOT com Subject: Re: Compiling problem (cmath) In-Reply-To: <9vdmf2$844$2@news.cc.tut.fi> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=windows-1257 Content-Transfer-Encoding: 8BIT 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 Precedence: bulk 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