Seems you didn't cross compile but rather for your host. Check compiler settings
It's certainly possible, but I'm not even sure where to look, as the project is set for the "Cross" compiler, including the following output:
Invoking: Cross GCC Compiler
Invoking: Cross G++ Linker
so i found an answer to my specific issue here:
the problem seems to be that just creating a new c++ project from within the iotdk-ide creates a standard c++ project, connected to the default toolchain (the xcode-supplied one on my mac). That's despite the fact that the cross toolchain is selected in the project settings. What's more, the includes shown in the project then come from xcode, and I see no way to get rid of them. The only way around was to follow the instructions in the post - copy/paste one of the sample projects, and add code to the result. That seems to have solved the problem, but seems rather janky.
Thanks for that feedback - it's very important!
we are aware that creating a new project right now in the beta release isn't completely easy.
wip to provide an easier way to start new projects. Pls stay tuned