QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Exec format error |
Ref. No. |
QNX.000005996 |
Category(ies) |
Development |
Issue |
When I try and run one of my programs I get the following:
"progname: Exec format error"
What is wrong?
|
Solution |
ENOEXEC (8) exec format error There is a problem with the load file (executable). "exec format error" means it isn't a valid QNX executable. i.e. was built wrong.
A 32-bit executable will also report this on a 16-bit version of the OS, since it isn't a valid executable in that version.
Use the file utility to see what type of file it is. You should see something similar to:
# file /bin/file /bin/file: QNX 400 i386 executable @ 0x22000. |
|