gcc pathing problem?

Dennis Kaarsemaker dennis at kaarsemaker.net
Wed Jun 15 12:41:22 UTC 2005


On wo, 2005-06-15 at 06:57 -0500, Ben Miller wrote:

> Code sample -as you can see, it's definitely learning material:
> #include <iostream.h>

Very obvious :)
Includes in C++ do not need the .h suffix, so this would be:

#include <iostream>

If you want to use old C headers in C++, prefix their names with a c,
like:

#include <cstdio>

for the C stdio.h

-- 
Dennis K.
  - Linux for human beings: http://www.ubuntulinux.org
  - Linux voor normale mensen: http://www.ubuntulinux.nl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050615/592cbcb9/attachment.pgp>


More information about the ubuntu-users mailing list