Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8353931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:24:23+00:00 2026-06-09T09:24:23+00:00

I just found out that the <stdlib.h> and <stdio.h> headers are located in the

  • 0

I just found out that the <stdlib.h> and <stdio.h> headers are located in the /usr/include folder in Ubuntu server, but I don’t find sys/types.h.

And I start to suspect the compiler won’t actually use the header file in the /usr/include folder.

Is this true, and where is the file located?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T09:24:25+00:00Added an answer on June 9, 2026 at 9:24 am

    My Debian box (and hopefully Ubuntu haven’t butchered it too much in their zeal) has it in /usr/include/sys/types.h.

    Your best bet is to execute:

    find /usr/include -name types.h
    find / -name types.h # if not found by one above
    

    However, keep in mind that the development stuff may not even be installed on a server. Unless it’s a server for a compiler farm, it wouldn’t surprise me if the compiler and a bunch of other stuff was not part of the default install.

    If the compiler is locating it somewhere and you just don’t know where, you can use something like:

    echo "#include <sys/types.h>" | gcc -E -x c - | grep /types.h
    

    to find out where it’s getting it from.

    That gcc command line:

    • stops after the pre-processing phase (-E);
    • forces the file to be treated as C source code (-x c); and
    • retrieves the program from standard input (-), in this case from the echo statement.

    The final grep just strips out the unimportant lines leaving the ones that are likely to contain the location of the included file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey, I'm using Mercurial. I just found out that there is a .hg folder
I just found out that I can write a really simple web server using
I just found out that a table on my production server (which holds approx.
I had been using using PIL but I just found out that it doesn't
Just found out that the video output of the iPad is not a system
I just found out that every time onclick event for my <button> placed inside
I just found out that in FF, if you are dynamically creating an OPTION
I just found out that lazy loading in Entity Framework only works from the
I've just found out that there is a possibility to host a Windows Forms
I have an interview tomorrow morning and just found out that I will also

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.