help-gengetopt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-gengetopt] [PATCH] Fix build failure with GCC 4.3


From: Debarshi Ray
Subject: Re: [help-gengetopt] [PATCH] Fix build failure with GCC 4.3
Date: Fri, 7 Mar 2008 16:06:25 +0530

>>  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:

address@hidden cat hello.cpp
#include <cstdio>

using namespace std;

int main (void)
{
  printf("Hello world\n");
  return 0;
}
address@hidden g++ --version
2.96
address@hidden g++ hello.cpp
address@hidden ./a.out
Hello world
address@hidden

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]