-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cstddef: No such file or directory #3725
Comments
@Darker We have a hal that includes code and header files for many targets, and many features in the code that can be turned on and off. Further, we have a few more arguments to gcc than just Further, we use GCC version 4.9.3. Finally, it looks like you are missing system header files. But I'm not sure this is even the real problem here. Could you try changing your GCC version and using mbed-cli first? |
@Darker The |
GitHib issue review: Closed due to inactivity. Please re-file if critical issues found. |
Hi, I do have this problem:
cstddef: No such file or directory |
what gcc is there ? the ARM path points to gcc (use GCC 6 as that one is supported). T hus I would fix GCC_ARM_PATH to point to GCC ARM 6 version |
Hi, thank you very much for helping me! I looking where to download v6.... and update once I know... |
@bkht what type of file triggers the error ? C or C++ ? |
scroll down more, 6 is there |
Many thanks!!! |
Hi, I just installed gcc 6.3.1
But the result is the same:
I also tried 6.2.1 |
If you can answer this question, where is the error coming from (not only what header file). |
Hi, this is the complete output, hope that helps (unfortunately, it's not clear to me):
|
@bkht You may need |
I use Linux Mint 18.1 |
@bkht The following lines are suspicious:
Why do you copy manually If you have extracted GCC in
|
Thank you! That actually works better. I still have problems, but I will first try different versions of the compiler.
|
@bkht the #include "mbed.h"
DigitalOut led1(LED1);
// main() runs in its own thread in the OS
int main() {
while (true) {
led1 = !led1;
wait(0.5);
}
} This application should blink your board LED every 500ms. |
Thank you very much!, Now it all works! |
Description
mbed-os/platform/platform.h:22:19: fatal error: cstddef: No such file or directory
I cloned this repository and tried to compile this program:
With this command:
arm-none-eabi-gcc main.c --specs=nosys.specs -I../../software/mbed-os/
Where
../../software/mbed-os/
is path to the root of this repository. The error I get:The version of my compiler:
I'm running this all on Windws 7 x64 and Debian 8 Jessiex64 with same result. I found some vague mentions of something called
private_settings.py
in some forum threads, but nobody really bothered to explain what is that supposed to do.The text was updated successfully, but these errors were encountered: