Closed yennster closed 4 years ago
hi @yennster
hmmm.. afraid I haven't tried building against mbed cli for a long time.
For offline development, most people are compiling this repo using the instructions here: https://lancaster-university.github.io/microbit-docs/offline-toolchains/
Anyone out there with a working mbed-cli build that can advise here?
Looking at the error message, it seems you are using the wrong version of the compiler??
On 3 Oct 2018 10:06 am, Joe Finney notifications@github.com wrote:
hi @yennsterhttps://github.com/yennster
hmmm.. afraid I haven't tried building against mbed cli for a long time.
For offline development, most people are compiling this repo using the instructions here: https://lancaster-university.github.io/microbit-docs/offline-toolchains/
Anyone out there with a working mbed-cli build that can advise here?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/lancaster-university/microbit-dal/issues/393#issuecomment-426563930, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AX6vIhZ1iR_0GM28rNFLD037scmqXtEdks5uhH4VgaJpZM4XEtOo.
Previous discussion in the mbed-cli repo for more context: https://github.com/ARMmbed/mbed-cli/issues/327
@DavidWhaleMEF Using the wrong version of GCC_ARM?
@DavidWhaleMEF Oh I see, you're referring to the Mbed CLI warning: [Error] @,: Compiler version mismatch: Have 7.2.1; expected version >= 6.0.0 and < 7.0.0
I'll give another version a try then
@yennster GCC reports the error because including C++ header file from C source code (ble_dfu.c). This should guard something like:
#ifdef __cplusplus
#include <algorithm>
#endif
Hi, I am trying to compile the "microbit-hello-world" example here: https://os.mbed.com/teams/BBC/code/microbit-hello-world/ with the Mbed CLI:
mbed compile -t gcc_arm -m nrf51_microbit
and I get the following error output:Any tips on how I can resolve these errors? Thanks!