On Tue, 2006-02-14 at 14:11 +0100, Jan C. Nordholz wrote: > Hi Oliver, > > > g++-2.95 -c -pipe -DQWS -fexceptions -fno-rtti -Wall -W -g -std=c99 > > -I/opt/Qtopia/include -o orderimpl.o orderimpl.cpp > > orderimpl.cpp: In method `void OrderImpl::calculate_line(int)': > > orderimpl.cpp:84: implicit declaration of function `int round(...)' > > this sounds like <math.h> doesn't give you the prototype for round(). > Try to run <math.h> through the preprocessor alone > (g++-2.95 -std=c99 -E /usr/include/math.h), and grep for "round". > I don't get the definition with "g++-3.3" alone, but with > "g++-3.3 -std=c99" I do... YMMV. I've got no g++-2.95 here to continue > the tests.
with g++-2.95, this gives no prototypes for round(). So it appears that -std=c99 does not work. Is there some way to achieve this for 2.95? (This is now academic, since I have written my own version for this application.) -- Oliver Elphick olly@lfix.co.uk Isle of Wight http://www.lfix.co.uk/oliver GPG: 1024D/A54310EA 92C8 39E7 280E 3631 3F0E 1EC0 5664 7A2F A543 10EA ======================================== Do you want to know God? http://www.lfix.co.uk/knowing_god.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]