By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,243 Members | 1,079 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,243 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
I forgot to post that these dot h's do not exist in non system
directories.

Sorry,
Chris Lusardi

Sep 7 '05 #2

P: n/a
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.