Reputation: 1
I am trying to run a C++ program using the IDE Codelite on an Ubuntu 18.04.5 LTS computer with MinGW compiler (i686-w64-mingw32). When I execute it gives the error "Exec Format Error". I can't figure out how to fix this. I appreciate any advice.
Upvotes: 0
Views: 135
Reputation: 111
You say you are trying to run a program, correct? MinGW is a cross-platform toolchain for Windows. Nothing you build with it will run natively on Linux. Use GCC if you want to write an application you can run.
When you say "execute", do you mean build using Codelite or execute the program? A Codelite error could be a bug, or a misconfigured setting, or something. A simple google of "exec format error" told me the error came from an app failing to execute. It is typically followed by a description, such as "permission denied". It is most likely, however, to be because you are trying to execute a windows application.
Upvotes: 2