On Fri, 27 Jun 2003 at 15:07 (+0200), Ralf Corsepius wrote:
Am Fre, 2003-06-27 um 10.17 schrieb Bernhard Walle:
folgendes Problem:
,----[ test.c ]- | #include
| #include | | int main (int argc, char** argv) | { | printf("%f\n", round(0.5)); | | return 0; | } `---- [~] $ gcc -W -Wall -Wno-unused -lm -o test test.c test.c: In function `main': test.c:6: warning: implicit declaration of function `round' test.c:6: warning: double format, different type arg (arg 2)
man round .. CONFORMING TO C99. ..
Beachte C99 !!!
=> gcc -Wall -std=c99 -o test test.c -lm
Funktioniert (allerdings nur mit gcc 3.x), aber wie soll man da drauf kommen ... Jedenfalls danke! Gruss, Bernhard -- _________ http://www.bwalle.de _________________________________________________ A feature is nothing more than a bug with seniority.