[Qt-interest] Including some of the STL headers
Duane Hebert
spoo at flarn.com
Tue May 26 17:47:52 CEST 2009
"Andreas Pakulat" <apaku at gmx.de> wrote in message news:20090526145804.GC31647 at neo.apaku.dnsalias.org...
> On 26.05.09 23:28:15, Peter Nunn wrote:
>> Are you sure you should be including <stdio.h> I thought the new standard
>> headers were all of the form <stdio> (no .h after them).
>
> You're mixing STL and libc header forms. The C library still uses stdio.h,
> stdlib.h and so on. The STL however supplies C++-versions of the C headers
> in the form of cstdio, cstdlib.
Or if you're using c++, you can include <cstdio> which puts all of the names from stdio.h into std namespace.
Same thing for cstdlib and some others
http://publib.boulder.ibm.com/infocenter/comphelp/v9v111/index.jsp?topic=/com.ibm.xlcpp9.aix.doc/standlib/header_cstdlib.htm
Not sure if including <stdio> is valid or what it would accomplish if it was though.
More information about the Qt-interest-old
mailing list