mbed.h: No such file or directory with mbed new --mbedlib
See original GitHub issuembed new --mbedlib
not expand .h files.
Does https://mbed.org/users/mbed_official/code/mbed/builds/3a7713b1edbc
has problem?
C:\mbed>mbed new test --mbedlib
[mbed] Creating new program "test" (git)
[mbed] Adding library "mbed" from "https://mbed.org/users/mbed_official/code/mbed/builds" at branch/tag "tip"
[mbed] Unpacking library build "3a7713b1edbc" in "C:\mbed\test\mbed"
[mbed] Unpacking library build "3a7713b1edbc" in "C:\mbed\test\mbed"
[mbed] Updating reference "mbed" -> "https://mbed.org/users/mbed_official/code/mbed/builds/3a7713b1edbc"
[mbed] Couldn't find build tools in your program. Downloading the mbed 2.0 SDK tools...
C:\mbed>cd test
C:\mbed\test>notepad main.cpp
C:\mbed\test>mbed compile -t GCC_ARM -m LPC11U35_401
Building project test (LPC11U35_401, GCC_ARM)
Scan: test
Compile [100.0%]: main.cpp
[Fatal Error] main.cpp@1,18: mbed.h: No such file or directory
[ERROR] .\main.cpp:1:18: fatal error: mbed.h: No such file or directory
#include "mbed.h"
^
compilation terminated.
[mbed] ERROR: "c:\python27\python.exe" returned error.
Code: 1
Path: "C:\mbed\test"
Command: "c:\python27\python.exe -u C:\mbed\test\.temp\tools\make.py -t GCC_ARM -m LPC11U35_401 --source . --build .\BUILD\LPC11U35_401\GCC_ARM"
Tip: You could retry the last command with "-v" flag for verbose output
---
C:\mbed\test>
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:28 (10 by maintainers)
Top Results From Across the Web
How to correctly start developing an application offline using ...
The issue seems to be already documented on mbed.h: No such file or directory with mbed new --mbedlib · Issue #805 · ARMmbed/mbed-cli ......
Read more >mbed error - Programming Questions - Arduino Forum
Arduino\libraries\edcb13b58b4f/LED_Bar.h:24:18: fatal error: mbed.h: No such file or directory #include "mbed.h" ^ compilation terminated.
Read more >mbed-cli - PyPI
Note: Mbed CLI versions older than 1.5.1 are not compatible with pip version ... mbed new mbed-classic-program --mbedlib [mbed] Creating new ...
Read more >Vscode mbed.h not found - PlatformIO Community
“message”: “mbed.h: No such file or directory”, ... see in the screenshot I have made a new project and I have not written...
Read more >Building Mbed OS projects with Keil µVision
Choose 'C++ File', name it 'main.cpp' and click Add. 5. Add the following code to the new file: #include "mbed.h".
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey folks, I took a look and indeed
mbed.h
is missing from the releases with the hashes65be27845400
and3a7713b1edbc
. I can confirm what @toyowata said (thanks very much!), thee95d10626187
revision does contain thembed.h
. If you need to work offline, I would recommend using that revision if possible. If you need the latest versions, I have found that the online compiler still seems to be working. I will be pursuing this issue more, thanks for raising this (and sorry for the slow response).@0xc0170 He sent the email to me.