ullaskunder3 / Solution-to-graphics.h

My vs code setup for graphics.h ( I know its old, have to learn because of university they use turbo 😱. Vs code is way better 😍)
https://ullaskunder3.github.io/Solution-to-graphics.h/
47 stars 41 forks source link

fatal error #2

Closed 0xSarnavo closed 3 years ago

0xSarnavo commented 3 years ago

PS C:\Users\Subhajit\Desktop\project\cpp\collage lab\testFolder> g++ -o testfile example.cpp -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32 example.cpp:2:14: fatal error: graphics.h: No such file or directory 2 | #include | ^~ compilation terminated.

ullaskunder3 commented 3 years ago

Its not detecting the header file... did you added those file to include and lib folder of mingw as mentioned in README file: If you dont have MinGW install it from official and follow the steps & make sure you set bin folder to environment variable... Copy graphics.h and winbgim.h files to MinGW/include folder. Location Might be ("C:\MinGW\include") Copy libbgi.a to file to MinGW/lib folder. Location ("C:\MinGW\lib")

ullaskunder3 commented 3 years ago

PS C:\Users\Subhajit\Desktop\project\cpp\collage lab\testFolder> g++ -o testfile example.cpp -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32 example.cpp:2:14: fatal error: graphics.h: No such file or directory 2 | #include | ^~ compilation terminated.

try again and this time cross verify everything project template let me know...