We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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 ?