473,657 Members | 2,489 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2289
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
1431
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 stdafx.h file so I don't get the precompiled header directive something message. What happens to the cpp file with definitions of whatever is declared in the h file. Do I just add it to the project? Maybe I'm saying it all wrong? Cheers Kostas
3
1686
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
1422
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 writing C and you have a struct P, can you create a struct C that is an extension of the first (starts just like P and adds some data), and then use a C* as if it were an P*? Example:
11
2037
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; /* the same as Object */
1
7475
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 a bunch of "missing ;" errors. I did reinstall the whole thing a few times but it didn't work. Anyone have any idea? Thanks c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xutility(862) :
1
1222
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 that the compiler generates .resource files in the debug build of the application, for all forms except the main one (form1). The .resx file (with the icon in it) exists in the source directory,
2
1858
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
4622
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; i++){
12
2548
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
8392
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8305
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8726
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7320
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1944
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1604
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.