{"action":"closed","issue":{"url":"https://api.github.com/repos/platformio/platformio/issues/301","labels_url":"https://api.github.com/repos/platformio/platformio/issues/301/labels{/name}","comments_url":"https://api.github.com/repos/platformio/platformio/issues/301/comments","events_url":"https://api.github.com/repos/platformio/platformio/issues/301/events","html_url":"https://github.com/platformio/platformio/issues/301","id":110306963,"number":301,"title":"mbed: cstddef: No such file or directory","user":{"login":"laurentS","id":1745184,"avatar_url":"https://avatars.githubusercontent.com/u/1745184?v=3","gravatar_id":"","url":"https://api.github.com/users/laurentS","html_url":"https://github.com/laurentS","followers_url":"https://api.github.com/users/laurentS/followers","following_url":"https://api.github.com/users/laurentS/following{/other_user}","gists_url":"https://api.github.com/users/laurentS/gists{/gist_id}","starred_url":"https://api.github.com/users/laurentS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurentS/subscriptions","organizations_url":"https://api.github.com/users/laurentS/orgs","repos_url":"https://api.github.com/users/laurentS/repos","events_url":"https://api.github.com/users/laurentS/events{/privacy}","received_events_url":"https://api.github.com/users/laurentS/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/platformio/platformio/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":{"login":"valeros","id":886732,"avatar_url":"https://avatars.githubusercontent.com/u/886732?v=3","gravatar_id":"","url":"https://api.github.com/users/valeros","html_url":"https://github.com/valeros","followers_url":"https://api.github.com/users/valeros/followers","following_url":"https://api.github.com/users/valeros/following{/other_user}","gists_url":"https://api.github.com/users/valeros/gists{/gist_id}","starred_url":"https://api.github.com/users/valeros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valeros/subscriptions","organizations_url":"https://api.github.com/users/valeros/orgs","repos_url":"https://api.github.com/users/valeros/repos","events_url":"https://api.github.com/users/valeros/events{/privacy}","received_events_url":"https://api.github.com/users/valeros/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-10-07T20:13:49Z","updated_at":"2015-10-09T09:59:57Z","closed_at":"2015-10-09T09:59:57Z","body":"I am trying to build a very simple piece of code for mbed. My code starts with ``#include \"mbed.h\"`` which includes ``platform.h``. When running `platformio run` I get the following error:\r\n```\r\n.pioenvs/nucleo_l053r8/FrameworkMbedInc-250686161/platform.h:25:19: fatal error: cstddef: No such file or directory\r\n\r\n#include <cstddef>\r\n^\r\ncompilation terminated\r\n```\r\n\r\nI'm on ubuntu trusty (14.04), I read forum posts here and there that say I should upgrade to `arm-none-eabi-gcc` version 4.9.3, but this doesn't solve the problem.\r\nI removed platformio entirely, reinstalled it with pip in a virtualenv, but no luck.\r\n\r\nI eventually fixed the issue by adding\r\n```\r\nbuild_flags = -I/home/laurent/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/4.8.3/ -I/home/laurent/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/include/c++/4.8.3/arm-none-eabi/\r\n```\r\nto my `platformio.ini`, but I don't feel like it's the right solution :)\r\n\r\nDid I miss a step in the installation, or is this a bug? (maybe not with platformio...)\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27241443-mbed-cstddef-no-such-file-or-directory?utm_campaign=plugin&utm_content=tracker%2F2014790&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F2014790&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"}}