AFAIK, the "dev c++" is a name for two or more IDE, which use different compilers for the actual work. You don't state which compiler you actually use, nor show the code that causes a problem. Hence we cannot advice on that yet.
If we could solve the actual problem, then we would not have to even consider any workarounds, whether they are virtuous or questionable.