This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Build failed when cross-compiling using arm-linux-gnueabihf toolchain in ARM DS

I have downloaded the latest linaro gcc arm-linux-gnueabihf for cross compilation from windows to linux. I tried to test it with a simple c++ HelloWorld code but I couldn't get the project to be successfully built. 

#include <iostream>
#include <bits/gthr-default.h>
using namespace std;

int main() {
	cout << "Hello World !" << endl; // prints Hello World !
	return 0;
}

Actually, I got the following build log 

07:28:09 **** Incremental Build of configuration Debug for project My_cpp_tutorial ****
make all 
'Building file: ../HelloWorld/My_cpp_tutorial.cpp'
'Invoking: GCC C++ Compiler 7.4.1 [arm-linux-gnueabihf]'
arm-linux-gnueabihf-g++.exe -I"E:\programs\gcc-linaro-7.4.1-2019.02-i686-mingw32_arm-linux-gnueabihf\gcc-linaro-7.4.1-2019.02-i686-mingw32_arm-linux-gnueabihf\arm-linux-gnueabihf\include\c++\7.4.1\arm-linux-gnueabihf\" -O0 -g -Wall -c -fmessage-length=0 -MMD -MP -MF"HelloWorld/My_cpp_tutorial.d" -MT"HelloWorld/My_cpp_tutorial.o" -o "HelloWorld/My_cpp_tutorial.o" "../HelloWorld/My_cpp_tutorial.cpp"
arm-linux-gnueabihf-g++.exe: fatal error: no input files
compilation terminated.
make: *** [HelloWorld/subdir.mk:20: HelloWorld/My_cpp_tutorial.o] Error 1

07:28:10 Build Finished (took 569ms)

Why is it displayed no input files, where clearly in the log we can see the path to the source file? and how can I solve this issue ?