Note to self:
When compiling software written to C99 standards, call the compiler so it actually knows it's SUPPOSED to be parsing ANSI code, not K&R.
That is all.
When compiling software written to C99 standards, call the compiler so it actually knows it's SUPPOSED to be parsing ANSI code, not K&R.
That is all.
From:
no subject
From:
no subject
#cc -version:
MIPSpro Compilers: Version 7.4.3m
since I'd rather kill myself than use GCC for anything other than software that absolutely will not build without it. The current versions of most GNU things are ANSI C[90|99] if they aren't GCC dependent.
SGI's cc defaults to K&R, and the GNU software that will build with it doesn't know to call it with the correct flag to put the compiler in ANSI, and at what level. I have simply set an environment variable that overrides autoconf's preference to do things my way, instead of the way it wants. I could edit a zillion autoconf files and submit patches, but really, I don't have that kind of free time.
From:
no subject
I'd think that if you were trying to compile a lot of Gnu code you would want to set your compile defaults to something that compiles everything correctly, especially if you're doing custom programming on the workstation and want to use ANSI anyway.
From:
no subject