Like Tree1Likes
  • 1 Post By devarishi

C Header Files

This is a discussion on C Header Files within the C Programming forums, part of the General Programming Boards category; Hi, When compiling C programs I face problems because of certain Header files which are not included in my Turbo ...

  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    36

    C Header Files

    Hi,


    When compiling C programs I face problems because of certain Header files which are not included in my Turbo C folder. For example, Windows.h is not there.

    Here's the list of the header files installed in my TC folder:

    -----------------------------------------------
    Sr. No. TC Header Files
    -----------------------------------------------
    1 C:\TC\INCLUDE\ALLOC.H
    2 C:\TC\INCLUDE\ASSERT.H
    3 C:\TC\INCLUDE\BIOS.H
    4 C:\TC\INCLUDE\CONIO.H
    5 C:\TC\INCLUDE\CTYPE.H
    6 C:\TC\INCLUDE\DIR.H
    7 C:\TC\INCLUDE\DOS.H
    8 C:\TC\INCLUDE\ERRNO.H
    9 C:\TC\INCLUDE\FCNTL.H
    10 C:\TC\INCLUDE\FLOAT.H
    11 C:\TC\INCLUDE\GRAPHICS.H
    12 C:\TC\INCLUDE\IO.H
    13 C:\TC\INCLUDE\LIMITS.H
    14 C:\TC\INCLUDE\MATH.H
    15 C:\TC\INCLUDE\MEM.H
    16 C:\TC\INCLUDE\PROCESS.H
    17 C:\TC\INCLUDE\SETJMP.H
    18 C:\TC\INCLUDE\SHARE.H
    19 C:\TC\INCLUDE\SIGNAL.H
    20 C:\TC\INCLUDE\STDARG.H
    21 C:\TC\INCLUDE\STDDEF.H
    22 C:\TC\INCLUDE\STDIO.H
    23 C:\TC\INCLUDE\STDLIB.H
    24 C:\TC\INCLUDE\STRING.H
    25 C:\TC\INCLUDE\TIME.H
    26 C:\TC\INCLUDE\VALUES.H
    27 C:\TC\INCLUDE\createF.h

    ---------------------------------
    C:\TC\INCLUDE\SYS\
    ---------------------------------

    28 C:\TC\INCLUDE\SYS\STAT.H
    29 C:\TC\INCLUDE\SYS\TIMEB.H
    30 C:\TC\INCLUDE\SYS\TYPES.H
    -----------------------------------------------


    Can anybody tell me where can I get all the header files (for free download) or can anybody share them with me?


    Thanks in advance!

    Dev.
    palaboy likes this.

  2. #2
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Katy, Texas
    Posts
    2,309
    Looks like you are ready to go to town programming on DOS!!
    Mac and Windows cross platform programmer. Ruby lover.

    Quote of the Day
    12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.

    Amen brother!

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    The header file windows.h and the ones that it includes in itself are available in compilers that actually support WINDOWS - which Turbo C doesn't.

    You may want to get a compiler that is a bit newer than 15 years old - perhaps a Free Download of Microsoft Visual Studio 2008 Express Edition, for example - but it may shock your system, perhaps?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  4. #4
    Registered User
    Join Date
    Dec 2008
    Posts
    36

    Lightbulb Writing C Programs under VC++ IDE

    Hi Mats,


    I have got MS VS Express 2005 & 2008 Edtions and installing any of them won't shock my system because I keep it updated to meet my requirements.

    Well, is it safe to write C programs using Visual C++ (VS Express Edition 2005 / 2008)?

    Thanks!

    Quote Originally Posted by matsp View Post
    The header file windows.h and the ones that it includes in itself are available in compilers that actually support WINDOWS - which Turbo C doesn't.

    You may want to get a compiler that is a bit newer than 15 years old - perhaps a Free Download of Microsoft Visual Studio 2008 Express Edition, for example - but it may shock your system, perhaps?

    --
    Mats

  5. #5
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Katy, Texas
    Posts
    2,309
    Yes, unless you do it in the middle of the street, at night, with your laptop.
    Mac and Windows cross platform programmer. Ruby lover.

    Quote of the Day
    12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.

    Amen brother!

  6. #6
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Dino, you haven't been taking your anti-sarcasm medication - which reminds me, I need mine soon!

    Yes, it's fine - just make the filenames end with .c instead of .cpp, and it will be compiled as C rather than C++.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  7. #7
    Registered User
    Join Date
    Dec 2008
    Posts
    36

    Thumbs up MS Visual Studio Express 2008 Edition for Writing C Programs

    Thanks Mats!

    I am at my company office right now. But when I go back to my room, I am going to install MS Visual Studio Express 2008 Edition!

    I have one more question which I am going to write in a different post.

    Thanks again!

    Dev.


    Quote Originally Posted by matsp View Post
    Dino, you haven't been taking your anti-sarcasm medication - which reminds me, I need mine soon!

    Yes, it's fine - just make the filenames end with .c instead of .cpp, and it will be compiled as C rather than C++.

    --
    Mats

  8. #8
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Katy, Texas
    Posts
    2,309
    Quote Originally Posted by matsp View Post
    Dino, you haven't been taking your anti-sarcasm medication - which reminds me, I need mine soon!

    Mats
    Yeah. Here's the way I see it.

    On some forums, you just gets answers.

    Other forums, you just get sarcasm.

    Here, one will most always get a quick answer, and the payment is they have to be prepared for a little sarcasm, lest it gets too boring otherwise.

    I mean, if there was no sarcasm, I wouldn't have a signature.
    Mac and Windows cross platform programmer. Ruby lover.

    Quote of the Day
    12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.

    Amen brother!

  9. #9
    Registered User
    Join Date
    Dec 2008
    Posts
    36
    Hi Dino,


    I have got a sense of humour so even sarcasm makes a great sense to me!

    Thanks a lot to you guys! I hope I will find solutions of my problems that I may encounter when writing programs in C and C++.

    Have a great time!

    Dev.


    Quote Originally Posted by Dino View Post
    Yeah. Here's the way I see it.

    On some forums, you just gets answers.

    Other forums, you just get sarcasm.

    Here, one will most always get a quick answer, and the payment is they have to be prepared for a little sarcasm, lest it gets too boring otherwise.

    I mean, if there was no sarcasm, I wouldn't have a signature.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  2. #include header files or .cpp files?
    By DoctorX in forum C++ Programming
    Replies: 3
    Last Post: 12-23-2006, 11:21 AM
  3. classes and header files
    By Drake in forum C++ Programming
    Replies: 8
    Last Post: 11-30-2006, 06:12 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21