I am trying to crosscompile simple hello world from Widows to Intel Edison via cmd. Instruction from here works perfectly. But I wont to use makefiles and where are not exists i586-poky-linux-make in this cross toolchain. So I decided to use mingw32-make from mingw32 binarys for Windows x86. Here is my simple makefile:
main: main.cpp
i586-poky-linux-gcc --sysroot=%POKY_HOME% main.cpp -o test -lstdc++ -O2
And... Iam getting an error
C:\Intel\iotdk-ide-win>mingw32-make
i586-poky-linux-gcc --sysroot=%POKY_HOME% main.cpp -o test -lstdc++
main.cpp:1:20: fatal error: iostream: No such file or directory
#include <iostream>
^
compilation terminated.
makefile:4: recipe for target 'main' failed
mingw32-make: *** [main] Error 1
How can I fix it? Thanks.