473,320 Members | 2,080 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,320 software developers and data experts.

Header Files in Linux..

What is the Location of C header files in a linux system???
Also, how do I add conio.h.. C in linux doesnt support it by default

Apr 9 '07 #1
6 6516
On Apr 9, 2:46 pm, "aman" <ama...@gmail.comwrote:
What is the Location of C header files in a linux system???

Also, how do I add conio.h.. C in linux doesnt support it by default
Generally you will find most of the header files in /usr/include
directory.

Cheers
-Vallabha

Apr 9 '07 #2
aman <am****@gmail.comwrote:
What is the Location of C header files in a linux system???
Typically it's /usr/include/.
Also, how do I add conio.h.. C in linux doesnt support it by default
You don't. conio.h doesn't exist since that is a Windows specific
extension.

Please take such questions to e.g. comp.os.linux.development.apps.
The details of system-specific extensions aren't topical here.
So asking e.g. "how do I get what I have from conio.h under Windows
also under Linux" ere isn't a good idea since in clc we neither
discuss the system-specific extensions of Windows nor of Linux.
And when you ask e.g. comp.os.linux.development.apps it probably
will make sense not to ask "where is conio.h" but tell people
over there what exactly you need from conio.h to give them a
chance to give you a useful reply instead of just answering
"it doesn't exist".
Regards, Jens
--
\ Jens Thoms Toerring ___ jt@toerring.de
\__________________________ http://toerring.de
Apr 9 '07 #3
Jens Thoms Toerring said:

<snip>
Please take such questions to e.g. comp.os.linux.development.apps.
The details of system-specific extensions aren't topical here.
So asking e.g. "how do I get what I have from conio.h under Windows
also under Linux" ere isn't a good idea since in clc we neither
discuss the system-specific extensions of Windows nor of Linux.
Especially since at least two Win32 vendors supply a conio.h and,
although there is some overlap in what they provide, it is quite a
small overlap.
And when you ask e.g. comp.os.linux.development.apps it probably
will make sense not to ask "where is conio.h" but tell people
over there what exactly you need from conio.h to give them a
chance to give you a useful reply instead of just answering
"it doesn't exist".
Right.

To OP: Furthermore, don't ask "where can I find a Linux version of
foo()?", because the Linux guys may not realise that your Win32
implementation's foo() function grommetises a plark. Instead, ask "how
can I grommetise a plark under Linux?"

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Apr 9 '07 #4
aman wrote, On 09/04/07 10:46:
What is the Location of C header files in a linux system???
Depends on which headers you want.
Also, how do I add conio.h.. C in linux doesnt support it by default
Generally you don't add headers, you add libraries which come with the
required headers. Just adding a header would be like buying the dust
jacket for an atlas and expecting to be able to use the dust jacket to
look up where places are instead of buying the atlas.

For details of what Linux support there might be for building programs
designed for DOS (which I'm guessing is the conio.h you are referring
to) you need to ask on a Linux group.
--
Flash Gordon
Apr 9 '07 #5
Richard Heathfield wrote:
[...]
To OP: Furthermore, don't ask "where can I find a Linux version of
foo()?", because the Linux guys may not realise that your Win32
implementation's foo() function grommetises a plark. Instead, ask "how
can I grommetise a plark under Linux?"
Plarks aren't standard Linux -- they're a BlueShoe Linux extension,
and you can't grommetise them unless you have glibc 2.3 or later.

--
+-------------------------+--------------------+-----------------------+
| Kenneth J. Brody | www.hvcomputer.com | #include |
| kenbrody/at\spamcop.net | www.fptech.com | <std_disclaimer.h|
+-------------------------+--------------------+-----------------------+
Don't e-mail me at: <mailto:Th*************@gmail.com>
Apr 9 '07 #6
On Apr 9, 4:46 am, "aman" <ama...@gmail.comwrote:
What is the Location of C header files in a linux system???
The bulk of the standard headers should be under /usr/include.
Also, how do I add conio.h.. C in linux doesnt support it by default
Right, because conio is a platform-specific extension for display
management in DOS/Windows land; it's not part of the standard C
library. Anything that has to do with display management (clearing
the screen, changing text color, placing the cursor at a specific
location, rendering JPEG-encoded images, etc.), sound, networking, or
file system management (anything beyond creating, reading/writing, and
deleting individual files) is going to be a platform-specific
extension, and the details will vary from platform to platform.

For linux, the closest thing to conio would be ncurses.

Apr 9 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: matthurne | last post by:
I just started learning C++ on my own...I'm using Accelerated C++. Something it hasn't explained and I keep wondering about is how header files actually work. I suspect it doesn't get into it...
11
by: Steven T. Hatton | last post by:
In the past there have been lengthy discussiions regarding the role of header files in C++. People have been very adamat about header files serving as in interface to the implementation. I do...
0
by: Berthold Höllmann | last post by:
I have a default coding header # -*- coding: iso-8859-15 -*- in my python files. I now have Problems with this settings. I swithched to Python 2.4.1 under Windows. When I import files with the...
6
by: candy | last post by:
hi all, I just want to know that whether the C header files( like stdio.h,etc which the compiler provides) just contains the function declarations or they also contain some additionalinformation...
7
by: paytam | last post by:
How can I define my own header file?(I use linux,but when I use sine or cosine and etc. I faced to error,so I read the header file but there wasn't any prototype of that functions,so I decided to...
3
by: anand.ba | last post by:
Hi, I need to port some C code from UNIX SGI to Windows (MS VC++ compiler). The following header files arent available in windows: #include <sys/param.h> #include <sys/ioctl.h> #include...
5
by: usenet | last post by:
Is there any way to selectively suppress compiler warnings from designated header files (Ex: Boost header files) using gcc-3.3.1 on Linux PC? We tried using -Wno-system-headers option but it did...
10
by: parag_paul | last post by:
HI all, Suppose I have a huge code base, And I have a very common header file. Now there are mulitple places where this header file is kept. This header file cannot be factored as it has...
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.