简体   繁体   中英

Exec Format Error using Codelite IDE and Ubuntu

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM