So, if you compile without “-std=c99″, then I get this warning:
warning: incompatible implicit declaration of built-in function 'lrint'

And if I enable that switch, M_PI is suddenly undefined.
'M_PI' undeclared

Can anybody explain me how I am expected to write software without rounding and PI?

And no, I can’t be bothered to define PI in all my sourcefiles myself!

Cheers
-Richard

Tags Development, Rant

2 Responses to “Doomed if you do, doomed if you don’t”

  1. Bob Says:

    edit math.h and add M_PI as i presume you alwasy include math.h when you need M_PI

  2. oracle Says:

    thx for the hint, but I was mostly ranting about the language standards hypocrites, that make their software barely usable for the sake of abiding to “standards”.

    Cheers
    -Richard

Leave a Reply

*
To prove that you're not a bot, enter this code
Anti-Spam Image