Hello,
user:~/catkin_ws$ cd ~/catkin_ws/src/cpp_course_repo/utilities/
user:~/catkin_ws/src/cpp_course_repo/utilities$ g++ -std=c++11 file.cpp -o name_compiled
/usr/lib/gcc/x86_64-linux-gnu/5/…/…/…/x86_64-linux-gnu/crt1.o: In function _start': (.text+0x20): undefined reference to
main’
collect2: error: ld returned 1 exit status
What is the reason for this error?
Regards,