I have a Code::Blocks 13.12 project on an Ubuntu Linux 14.04 (LTS) 64-bit computer. I would like to make a copy to an external drive (a WD “My Passport” 500 MB device) and to run the program from that drive. I copy the program's directory and all subdirectores from the internal drive to the external drive using “cp -r” in a terminal window. I then start Code::Blocks, open the project on the external drive, “build” it (so that all modules are re-compiled). There are 0 errors. I then then attempt to run it, and it stops after 0 seconds. The permissions on the supposedly executable file in the bin/Release subdirectory are -rw-------. In other words, the supposedly executable is not executable. And chmod cannot make it executable.
Can what I want to do be done? If so, what am I doing wrong? The procedure described works for making a backup copy on the internal disk, but what about an external drive and moving the project to other computers?
Thanks for your attention.