468,117 Members | 2,106 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,117 developers. It's quick & easy.

SGI CC compiler: What happens if I use --> #include "unistd.h" and "stdio.h"?

Hello,

I'm trying to understand someone else code.

The below compiles and works fine and dandy.

#include <sys/types.h>
#include "unistd.h"
#include "stdio.h"

Is it o'kay to change it to the below? (It may be causing me an
error.)

#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>

Thank you,
Christopher Lusarsdi

Sep 7 '05 #1
2 2051
I forgot to post that these dot h's do not exist in non system
directories.

Sorry,
Chris Lusardi

Sep 7 '05 #2
cl********@aol.com wrote:
I'm trying to understand someone else code.

The below compiles and works fine and dandy.

#include <sys/types.h>
#include "unistd.h"
#include "stdio.h"

Is it o'kay to change it to the below? (It may be causing me an
error.)

#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>


It "may be causing"? What do you mean? Is it causing or is it not
causing?

There is no standard header <unistd.h> nor "unistd.h". It's probably
compiler-specific, so read your documentation about it. As to 'stdio.h',
there is no form of that header that has double quotes. It _must_ be
<stdio.h>, and never "stdio.h".

V
Sep 7 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Kostas | last post: by
2 posts views Thread by Roderick Bloem | last post: by
11 posts views Thread by Alberto Giménez | last post: by
111 posts views Thread by Nate | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.