question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mbed.h: No such file or directory with mbed new --mbedlib

See original GitHub issue

mbed 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:open
  • Created 5 years ago
  • Reactions:2
  • Comments:28 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
bridadancommented, Feb 22, 2019

Hey folks, I took a look and indeed mbed.h is missing from the releases with the hashes 65be27845400 and 3a7713b1edbc. I can confirm what @toyowata said (thanks very much!), the e95d10626187 revision does contain the mbed.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).

2reactions
theotherjimmycommented, Jan 15, 2019

@0xc0170 He sent the email to me.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found