Troubleshooting Dev C++: How to Fix Source File Not Compiled Issues

Dev-C++ is a popular Integrated Development Environment (IDE) for C and C++ programming languages. It provides a user-friendly interface and simplifies the compilation and debugging process for developers. However, sometimes you may encounter the "Source File Not Compiled" issue while trying to build your project. This documentation will guide you through the process of troubleshooting and resolving this issue step-by-step.

Table of Contents

Check Your Build Settings

The first step in resolving the "Source File Not Compiled" issue is to ensure your build settings are correctly configured. Here's how:

  1. Open Dev-C++ IDE and load your project.
  2. Go to the Tools menu and click on Compiler Options.
  3. In the General tab, make sure the TDM-GCC 64-bit Release is selected under Compiler Set.
  4. In the Directories tab, verify that the Include and Lib directories are correctly set. The default paths should be:
Include: C:\Program Files (x86)\Dev-Cpp\MinGW64\include
Lib: C:\Program Files (x86)\Dev-Cpp\MinGW64\lib
  1. Click OK to save your settings and try rebuilding your project.

Verify Your Code

The "Source File Not Compiled" issue can also arise due to errors in your source code. To ensure there are no errors:

  1. Check your code for any syntax or logical errors.
  2. Make sure you've included all necessary header files.
  3. Ensure that you've properly closed all open brackets, parentheses, and braces.
  4. Check for any missing semicolons at the end of statements.
  5. Use the Build menu to compile your code or press F9 to ensure there are no errors.

If your code still doesn't compile, move on to the next step.

Check Your Compiler Installation

A faulty or incomplete compiler installation could also cause the "Source File Not Compiled" error. To check your compiler installation:

  1. Go to the Dev-C++ installation directory (e.g., C:\Program Files (x86)\Dev-Cpp).
  2. Open the MinGW64 folder and ensure that the bin, include, and lib folders are present.
  3. In the bin folder, check if the gcc.exe, g++.exe, and mingw32-make.exe files are present.

If any of these files are missing, you may need to reinstall Dev-C++ to fix the problem.

Update Dev-C++

Outdated versions of Dev-C++ may cause compilation issues. Make sure you're using the latest version of Dev-C++ by following these steps:

  1. Open Dev-C++ and go to the Help menu.
  2. Click on Check for Updates.
  3. If an update is available, follow the prompts to download and install it.
  4. Restart Dev-C++ and try compiling your project again.


Q: What is the latest version of Dev-C++?

A: As of the time of writing, the latest stable version of Dev-C++ is 5.11. You can download it from the official website.

Q: Can I use Dev-C++ for other programming languages?

A: While Dev-C++ is primarily designed for C and C++ languages, it also supports other languages like Fortran, Ada, D, and others through the use of external compilers.

Q: How do I change the default compiler in Dev-C++?

A: Go to Tools > Compiler Options and select the desired compiler set from the drop-down menu in the General tab.

Q: Can I use Dev-C++ on macOS or Linux?

A: Dev-C++ is a Windows-only application. However, you can use alternatives like Code::Blocks or Eclipse CDT on macOS and Linux.

Q: How do I create a new project in Dev-C++?

A: Go to File > New > Project, choose the desired project type, and follow the prompts to set up your new project.

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.