473,406 Members | 2,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 2276
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Kostas | last post by:
Hello, I just need to get something straight in my mind. In microsoft's VC compiler, whenever I include an .h file it should go into my stdafx.h file. Then every cpp file needs to include the...
3
by: Przemys³aw Dmochowski | last post by:
Hey. The topic similar as above. -- pozdrawiam / best regards B.a.z.i.c * a.t * b.a.z.i.c * d.o.t * p.l
2
by: Roderick Bloem | last post by:
I am going to take the liberty of crossposting this to comp.lang.c++ (originally comp.lang.c), and to summarize the discussion for the sake of those reading only c++. The question is: If you are...
11
by: Alberto Giménez | last post by:
Hi, I've seen some object oriented programming bits out there and i'm not sure if they're legal. For example: struct Object { int field1; int field2; }; struct SubObject { int field1; /*...
1
by: Minh | last post by:
I've just installed VS.NET 2003 on my Athlon XP 1800+. However I couldn't get any project with STL includes to compile even if I create a new empty project (and added #include <string>). It gave me...
1
by: Lucvdv | last post by:
In an app that was working, all I did was specify an icon for the main form (through the form designer) and recompile it. Result: MissingManifestResourceException After digging around, I found...
2
by: Rolf Welskes | last post by:
Hello, I have simple in one folder FolderA MyMaster.master and script01.js styles01.css The content pages are in
111
by: Nate | last post by:
Hello, I am looking for a method to automatically declare variables in C. I'm not sure if there is a good way to do this, but I had something like this in mind... int i; for(i = 1; i < 4;...
12
by: Pablo Suarez | last post by:
When I code #include "myheader.h" then this header file is searched in the current directory. But where does the compiler search the header file when I write #include <myheader.h>
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.