This repository helps you set up and use graphics.h
for graphical projects in C++ using VS Code and the TDM-GCC compiler.
D:.
├───.vscode
|___ File-to-copy
└───GraphicsProject
├───bin
└───source
source
: Contains all the C++ source files for your project.bin
: Contains the executable file generated after building the project..vscode
: Includestasks.json
andlaunch.json
for build and debug configurations.
- Open the project folder in VS Code.
- Run the Build Task:
- Press
Ctrl+Shift+B
to execute the build task.
- Press
- Locate Executable:
- The compiled executable file will be saved in the
bin
folder.
- The compiled executable file will be saved in the
- Place Necessary Files: Ensure
graphics.h
,winbgim.h
, andlibbgi.a
are copied into the correct TDM-GCC folders:include
folder for.h
files.lib
folder for.a
file.
- Configure VS Code: Update
.vscode/tasks.json
and.vscode/c_cpp_properties.json
to match your system’s TDM-GCC paths.