One other question I have is, why are the programs compiled as .exe and not as standard Linux binary?
It
is a standard linux binary
Just the name contains the .exe part. You can remove the .exe in project properties.
Linux won't give me the right to execute it.
This is vague.
Please post the following:
How are you trying to execute it? From inside the IDE or from a shell?
If trying from a shell, what command do you give?
If from inside the IDE, which version are you using? Also, enable the Code::Blocks debug log and post its contents here, after you 've tried executing the program.
The more info you give, the more chances you 'll get a spot-on answer...
Yiannis.