Help! Exec format error

i compiled a simple program that runs fine on my qnx6.3 machine,
however if i copy this executable to my bootable cd as part of my
bootable image, it says ‘exec format error’, what’s going on??