This guide explains how to set up Dev-C++ on Windows using Powershell Script, along with configuring graphics libraries for development.
You can install and configure Dev-C++ with graphics support using a single PowerShell command (run as Administrator):
a. Setup graphics libs (dev cpp pre-installed)
iex (iwr "https://raw.githubusercontent.com/GetSomeSleepBro/DevCppSetup/refs/heads/main/cg.ps1").Content
b. Install Dev C++
and setup graphics libs
iex (iwr "https://raw.githubusercontent.com/GetSomeSleepBro/DevCppSetup/refs/heads/main/dcscg.ps1").Content
The flags of the Linker options are copied to clipboard at the end of the script execution
- Open Dev-C++.
- Set the compiler version to
TDM-GCC 4.9.2 32-bit Release
from the dropdown menu.
- Navigate to:
Tools > Compiler Options
-
Add the following flags to the Linker options:
-static-libgcc -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32
- Ensure that you have administrative privileges when running the PowerShell script or modifying compiler settings.
- This setup is intended for graphical application development in Dev-C++ using BGI (Borland Graphics Interface) libraries.
Feel free to contribute to this repository or raise issues if you encounter any problems.