Thanks, Phillip. I'm a bit slow in answering my emails that I didn't realize
you had already addressed this issue.
Let's raise our glasses to strict compilers and strongly-typed programming
Quoting Philip Balister <[log in to unmask]>:
> Shereef Sayed wrote:
> > I've been testing 0.6.2 on FC9 and during installation it errors out
> > with:
> > 'atoi not declared in this scope'.
> > This also includes such favorites as 'strtod' and 'strtoul'. These
> > functions are found in <stdlib.h> or <cstdlib>, but for some reason g++
> > is not linking with them in FC9. I've been able to fix it by simply
> > adding '#include <cstdlib>', but is this a good solution when it really
> > only affects FC9 and no other distro (that we're aware of). Anyone have
> > any ideas? Thanks.
> F9 uses gcc 4.3 which is stricter about header file inclusion. gcc-4.3
> will creep into other distros slowly.
> Basically, whenever you use a c/c++ library function, make sure you
> include the header file in the file where you use the function. (Note, I
> did not say have one header that includes all needed header files ....)
> These changes will still compile on older compilers. gcc-4.3 is just
> helping you write better code.
> This is the diff for the version of ossie I use these days: