Re: [PATCH] Fix build failure with GCC 4.3

"Debarshi Ray" <[email protected]> Fri, 7 Mar 2008 16:06:25 +0530
Newsgroups gmane.comp.gnu.gengetopt.general
Message-ID <[email protected]>
>>  however, if gcc 2.95 supports cstdlib and co, probably we should switch
>>  to such headers... also because, if I'm not wrong, if the compiler
>>  cannot handle cstdlib headers it won't handle iostream (without the .h)
>>  either, am I right?

> I will try that on GCC 2.96 tomorrow and let you know.

It works:

debray@tista[41] cat hello.cpp
#include <cstdio>

using namespace std;

int main (void)
{
  printf("Hello world\n");
  return 0;
}
debray@tista[42] g++ --version
2.96
debray@tista[43] g++ hello.cpp
debray@tista[44] ./a.out
Hello world
debray@tista[45]

Happy hacking,
Debarshi
-- 
"From what we get, we can make a living; what we give, however, makes a life."
    -- Arthur Ashe