Hello guys can anyone tell me plz how to add graphics in dev c++ i have used graphics and libdgi.a in include n lib n linker | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 2

Hello guys can anyone tell me plz how to add graphics in dev c++ i have used graphics and libdgi.a in include n lib n linker

13th Mar 2018, 7:06 AM
Rafael Rana
Rafael Rana - avatar
3 Antworten
+ 2
Install Dev-C++. Download graphics.h to the include/ subdirectory of the Dev-C++ directories. Download libbgi.a to the lib/ In order to use the WinBGIm subdirectory of the Dev-C++ directories. Whenever you #include <graphics.h> in a program, you must instruct the linker to link in certain libraries. The command to do so from Dev-C++ is Alt-P. Choose the Parameters tab from the pop-up window and type the following into the Linker area: -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32 You can now compile and run programs that use the WinBGIm graphics library. #include <graphics.h> int main( ) { initwindow(400, 300, "First Sample"); circle(100, 50, 40); while (!kbhit( )) { delay(200); } return 0; } /* This Program opens a small window, draws a circle and waits for the user to press a key */
13th Mar 2018, 7:26 AM
H. Ahmadian
H. Ahmadian - avatar
0
thanks for your answer H.ahmadian but I already doing this same procedure but still getting error like undefined ...
13th Mar 2018, 12:09 PM
Rafael Rana
Rafael Rana - avatar
0
thanks
13th Mar 2018, 6:18 PM
Rafael Rana
Rafael Rana - avatar