What version of Dev-Cpp do you have? The last is 22.214.171.124. If you have anything less, it would be better to install the last one.
I've never had any problems compiling single source files with Dev-Cpp. The few problems are when a project occasionally needs a rebuild, and (I think) not being able to compile a single-source file while a project is also open.