magox
By:
magox

How to run a C++ executable compiled on a mac with gcc on a digitalocean droplet?

November 8, 2016 121 views
DigitalOcean Linux Commands

I wrote a c++ pgm and compiled it in console with g++ and have this error: cannot execute binary file: Exec format error

2 Answers

You will need to recompile it on your droplet to be able to run it there. It's telling you it was compiled to a binary format that it can't read.

doing this now actually... thks for answering...

Have another answer? Share your knowledge.