OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 1:45 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: stdint.h: No such file or directory bare bones tutorial
PostPosted: Sun May 08, 2022 2:15 am 
Offline
Member
Member

Joined: Sun May 08, 2022 2:10 am
Posts: 70
I'm trying to run the bare bones tutorial. I have done all of the steps up to this point, read all the things, made the i686-elf-* cross compilation tools, everything.
When I go to compile however, it gives me the following error:
Code:
/root/opt/cross/lib/gcc/i686-elf/12.1.0/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory
    9 | # include_next <stdint.h>
      |                ^~~~~~~~~~

Did I do something wrong with my cross compiler?


Top
 Profile  
 
 Post subject: Re: stdint.h: No such file or directory bare bones tutorial
PostPosted: Sun May 08, 2022 9:07 pm 
Offline
Member
Member

Joined: Wed Aug 30, 2017 8:24 am
Posts: 1593
You are not compiling with -ffreestanding. Look into the file referenced, it will only include the libc stdint.h if __STDC_HOSTED__ is defined nonzero.

_________________
Carpe diem!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 66 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group