Last time I ran into this issue, it was due to DEP (Data Execution Protection) setting on Windows. You can 'whitelist' the execution for Dev-C++ in the settings.