Re: [PATCH] Fix build failure with GCC 4.3
Lorenzo Bettini <[email protected]> Thu, 06 Mar 2008 13:05:06 +0100
| Newsgroups | gmane.comp.gnu.gengetopt.general |
|---|---|
| Message-ID | <[email protected]> |
Debarshi Ray wrote:
>> I guess this will break backward compatibility, won't it?
>
> Even GCC 2.96 supports the modern C++ style headers:
>
> debray@tista[205] cat hello.cpp
> #include <iostream>
>
> using namespace std;
>
> int main (void)
> {
> cout << "Hello world" << endl;
> return 0;
> }
> debray@tista[206] g++ --version
> 2.96
> debray@tista[207] g++ hello.cpp
> debray@tista[208] ./a.out
> Hello world
> debray@tista[209]
>
> Considering we are going to have 4.3 sometime soon, I do not think we
> should bother too much about losing backwards compatibility. :-)
ooops... shame on me! :-)
I thought that only the C++ headers (like iostream) were backward
compatible and not the C headers!
then I'll surely have to switch to the new headers
thanks
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net