C++ binary wont run on server if not compiled there
I'm currently writing a little program in c++, that should convert some stuff for me. The app should run on my server, but I'm currently writing it on my desktop pc with eclipse. On my pc, I can execute the binary that eclipse creates by typing If I copy the file to my server now and type the same thing I get:
But if I copy the .cpp files to the server and compile them there, I can start the problem without trouble using Why's that and what do I have to do, so that the binary compiled on my pc works on my server?
-bash: ./Converter: cannot execute binary file
(My server also runs on Ubuntu).
“The ships hung in the sky in much the same way that bricks don't.”