So I am not very proficient at coding or programming but I know the super basic code I am trying to run is correct because I run it in Geany and it works fine. I also am connected to a friends space and his code also runs fine on my computer but, if I take my code from geany or even copy and past his code to my work space to run it I get and error code every time telling me that the g++ failed.
it says this;
/home/ubuntu/workspace/HW1Day4: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
Process exited with code: 1
and I have no idea what that means, what I am doing wrong, or why the code wont run.