I need assistance, I can't run any code


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.


I currently don’t see any public workspaces under https://c9.io/Suminod

If you could paste the code and the error in a screenshot that would be helpful for helping you.

My guess is that you have not set up your workspace correctly. For example, when I create a Workspace for Java on a blank template, I have to download and install java(apt-get update, apt-get install) before I can compile and run any java code. I have to do this for every workspace I create, or I just clone a template workspace so I don’t have to install and create a java runner(the Run button) each time.