Why is the error called "bad EXE" and not "bad DLL"? Because on Windows both files have identical PE (Portable Executable) format, and it's only the presence of startup information inside the file that turns a PE file into an executable that can be started on its own. There are no 64-bit kits displayed in the screenshot below, but you should have them if you've installed them when you installed Qt. If you use Qt Creator, it should be easy to switch - just select a different kit. You most likely have both a 32- and 64-bit compiler available on your system. If you're compiling for 64 bits, use 64-bit DLLs. If you're compiling for 32 bits, use 32-bit DLLs. The DLL you're trying to open is either corrupt, or - most likely - it is for a different architecture. The symbolic name for that error is ERROR_BAD_EXE_FORMAT, and the error message is is not a valid Win32 application.
0 Comments
Leave a Reply. |