A complete C/C++ development kit with everything you need to get started with C/C++ programming, including graphics support and pre-configured VS Code tasks.
Compiler: C:\mingw64
Examples: %USERPROFILE%\Documents\Kalyug C++ Student Kit\Examples
VSCode Templates: {app}\vscode-templates
Important: After installation, open a new terminal or restart your PC to update PATH environment variables.
- Download Latest release from top of the page (or click here)
- Install the
.exeFile - Open VS Code
- Go to File β Open Folder
- Select:
- π
Documents - π
Kalyug C++ Student Kit
- π
- Click Select Folder
- If prompted, click:
β Yes, I trust the authors - Open:
Examples/circle.cpp - Install: C/C++ Extensions Pack
(VS Code will suggest automatically, or use this link - Press Ctrl + Shift + D β Select Run Graphics C++
- Press Ctrl + Shift + B β Built
- Press F5 (or Fn + F5) β Run
π Youβre ready to build graphics programs!
| Task | Shortcut |
|---|---|
| Show all build tasks | Ctrl + Shift + B |
| Show debug configuration | Ctrl + Shift + D |
Available Tasks
- Build Normal C++ β Standard console apps
- Build Graphics C++ β Programs using
graphics.h
Output Location: .bin\your_program.exe
- β MinGW-w64 C++ Compiler (64-bit)
- β
graphics.h+winbgim.h(WinBGIm library) - β
libbgi.aGraphics Link Library - β Example Programs (Stars.cpp + Circle.cpp + rectangle.cpp)
- β Pre-configured Build tasks for VS Code
| Component | Description |
|---|---|
| Compiler | MinGW-w64 GCC 15.2.0 (64-bit) |
| Graphics Library | WinBGIm for easy graphics programming |
| Examples | Sample C++ programs with graphics |
| VS Code Setup | Ready-to-use build tasks |
g++ file.cpp -o a.exeg++ file.cpp -o a.exe -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32| Program | Type | Description |
|---|---|---|
stars.cpp |
Basic | First basic program |
circle.cpp |
Graphics | Draws a circle using graphics.h |
rectangle.cpp |
Graphics | Draws a rectangle using graphics.h |
Cause: Missing graphics library link flags
Solution: Use the "Build Graphics C++" task instead of the normal build task
Cause: PATH environment variable not updated
Solution:
- Restart your PC, OR
- Open a fresh terminal window (close and reopen your terminal)
Cause: Graphics.h requires specific Windows libraries
Solution: Ensure you're using the "Build Graphics C++" task which includes all necessary library links
Cause:
Expected: %USERPROFILE%\Documents\Kalyug C++ Student Kit\Examples
Acutal: %USERPROFILE%\onedrive\Documents\Kalyug C++ Student Kit\Examples
Solution: Change the location of the file "Kalyug C++ Student Kit" to expected location
This project is free to share and improve. We welcome:
- Bug reports
- Feature suggestions
- Code improvements
- Documentation enhancements
- Sponsorship
If you encounter issues:
- Check the Troubleshooting section above
- Contact me at [email protected]
- Review the example programs
- Verify your installation paths
- Ensure all PATH variables are properly set

