8 years, 2 months ago.

mbed 3 and build error caused by failure to locate standard c++ header files.

Hello!

I have followed the yotta tutorial here http://yottadocs.mbed.com/ and tried to build the "helloyotta" application for the frdm-k64f-gcc target. Here's the sequence of commands I have run and I don't believe I have missed any steps:

1. sudo apt-get update && sudo apt-get install python-setuptools cmake build-essential ninja-build python-dev libffi-dev libssl-dev && sudo easy_install pip 2. sudo pip install yotta 3. sudo apt-get install gcc-arm-none-eabi 4. git clone https://github.com/ARMmbed/helloyotta.git 5. cd helloyotta/ 6. yotta target frdm-k64f-gcc

However I get the following error:

In file included from /home/user/Projects/Temp/helloyotta/yotta_modules/mbed-drivers/mbed-drivers/BusIn.h:20:0, from /home/user/Projects/Temp/helloyotta/yotta_modules/mbed-drivers/source/BusIn.cpp:17: /home/user/Projects/Temp/helloyotta/yotta_modules/mbed-drivers/mbed-drivers/platform.h:26:19: fatal error: cstddef: No such file or directory

  1. include <cstddef> ^ compilation terminated. [23/133] Building C object ym/mbed-drivers/source/CMakeFiles/mbed-drivers....op/Projects/Temp/helloyotta/yotta_modules/mbed-drivers/source/wait_api.c.o ninja: build stopped: subcommand failed.

Am I missing something? I'm running Xubuntu 14.04.03.

Be the first to answer this question.