Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.
We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.
Thank you for your understanding.
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 ?
-o "HelloWorld/My_cpp_tutorial.o" "../HelloWorld/My_cpp_tutorial.cpp"
Do you really have 2 distinct "HelloWorld" folders at slightly different levels of the directory tree ?
No, and as I said I solved the problem.