How to setup graphics.h in Dev C++ | CodeWar
Вставка
- Опубліковано 7 лют 2025
- In this video, I have explained How to setup graphics.h library in latest version of Dev C++.
Other Linker Options required for setup "graphics.h"
-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32
__________
SUBSCRIBE FOR MORE
www.youtube.co....
__________
LINKS
1) Download Dev C++ Latest Vesrion
sourceforge.ne...
2) Download graphics.h library files
drive.google.c...
__________
*SOCIAL MEDIA *
1) Instagram
/ codewarindia
2) Facebook
/ codewarindia
3) Telegram
t.me/codewarindia
4) Twitter
/ codewarindia
**IMPORTANT**
If you guys face any issue, explain your exact problem instead of saying like "It is not working".. you can also mail me at rp181135198@gmail.com and don't forget to send screenshot of your program, "Build Logs" Tab, and Output (if any) and Explain your problem.
Sir i am using visual studio code and with in mingw how can i add graphics.h header file in this help me sir
Everything runs perfectly with no error. The code runs good but the Windows BGI window doesn't show up. It shows only CMD.
@Nachiket_More
If your program is returning code (0xC0000005) which is returned when you try to access any null pointer in your program..
Then possibly the graphics library that you are using is corrupt or not copied properly.. Please download the graphics library from the below given link and try again.. And let me know if it works for you..
Link: drive.google.com/file/d/16xZBvFXf7yFjxwTpuyevK1KPuLgUeZFh/view
Sir i downloaded dev c++ from your link and wrote the code but while executing it it says
ERROR 193: %1 IS NOT A VALID WIN32 APPLICATION
@Sri_Praneeth
Mail me screenshot of your program, build log and output (if any) at rp181135198@gmail.com
Broo this work! After too many hours of trying, watching the video finally works. You have drink from me!
Ever since I started c++ a few years ago I've been dreaming of getting graphics in it. You fulfilled that dream. Thank you so much!
worked flawlessly ❤❤❤❤❤❤
just be sure to download latest version of Dev C++
Thank you so much I've been struggling for past 3 days to do graphics installation
I was trying to do this for a long time. No video on the youtube worked for me. But this video did workfor me. Thank you soooooooooo much.
thank you bro, for the guys reading this, the method he told works but just ensure you place spaces properly
Thanks Brother.
Guys, this actually works.
Just do all the things he has mentioned in the video.
It's working bro 🎉
Thank you so much😊
You deserve millions of subscribers bro.. ❤
Thank you sooooooo mucccchhh brother .. finally it worked... 😍😍
i was so tired by watching videos again and again ..TYSM
After spending tooo much time for output finely i got your video this helped me alot
hey did you really do this?
I tried doing the same thing but it is still showing an error
Thank you so much 😊
I was struggling with codeblocks but you made it so easy
Thanks bro, i was struggling since 3 hours, you solved my problem.
I have benefited a lot. I had no idea on graphics set up. Thanks
oh sir, may GOD bless you sir, after wandering a lot we found this usefull video OMG, thank you thank you so much sir🙏🙏🙏
Cool man !!! Thank's 👍👍👍, I used to code with it when I coded for MS DOS, but in MS DOS it was the slowest technic to use back them, so using direct hardware modification was more faster, and other twecks.
Thanks brother 😊..jay bhavani jay shivray 🚩🙏
Brother thank you very much, I have already downloaded 5 programs for the code, but it was your video that helped me, brother you are good
thanks lot. i was facing problem with graphics programming. u saved me
Thanks after trying for hours, finally i got a right video which helped me🙌🙌
Successfully complete
Thank you sir 🙏🙏
Thank you very much !!! It worked !!!Love your vid
I have been stuck for this setup process for last 2 days. Now it finally worked.. thank you brother
thank u so much for this great video. You helped me a lot and saved me from using turbo
you make this too much easy for me . it helps alot imn my final project thankyou
Thanks bro tried different ide but didn't came help a lot thanks 👍🏻
thanks i was able to do it within 10mins
the file names are changed but this works on ver 6.3 too. thanks a lot
You deserve 10 likes from one user👌🏻
thank YOU so much brother...... you just gave me relax on it ........................................
Thanks a lot!!! It's working and I can finally start doing my projects ahhhh Thanks again x x x
Thanks dude! It really helped us, may ALLAH bless you.
thankyou very much sir it's very help full for me ....
Hi, I have a problem. I set everything as you did but I got an error "cannot find -libgcc"
removing -libgcc worked for me.
30 59 C:\Program Files (x86)\Dev-Cpp\MinGW64\include\graphics.h [Error] sstream: No such file or directory compilation terminated. This is showing sir please tell me how to fix it
same
Grate man.. You are genius...
Hm, mine does not work, I've followed all steps, but when I try to compile it, it shows:
`cannot find -lgdi`
`cannot find -lgbi32`
`[Error] ld returned 1 exit status`
I have typed those two things into comp options, and don't really understand the last error. Can you please help me?
@green_kerbal
Both are wrong flags, copy and paste flags given below and try again
-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32
@@codewar same issue with me
Still the error coming
@@codewar please help me sir
@Shreyash
In Dev C++, go to Tools->Compiler Options and correct the linker flags..
Follow the linker flags given below..
-static-libgcc -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32
@@codewar yes it worked. I knew that I didn't change the 64 to 32 bit and changed it and followed the above instruction and problem solved thanks.
Setup completed successfully. Perhaps my linker options that I added earlier were removed when I changed the compiler to 32bit. Now resolved.
error is showing no such file or directory. How to fix it?
Thanks so much finally it work for me
OMG thank you very mush 😂😁
Thank you so much Sir, greetings from Mexico!
bro youre hero i was trying to do this since last 3-5 days but finally made it just because of you
I got an error:
Failed to execute "C:\Users\Acer Aspire 7\Desktop\Untitled1.exe":
Error 193: %1 is not a valid Win32 application.
Thank you so much bro. Appreciate this :33
it's not working
it's saying-
undefined reference to 'initgraph'
undefined reference to 'circle'
undefined reference to 'closegraph'
[Error] Id returned 1 exit status
Sir the windows BGI wont open no matter what not in codeblocks and even in this dev cpp
what should I do???
32 bit release waale pe compile kr
Great Video! 100% worked. thanks.
sheeessh this is lit bro.,.,.,,thanks
thank you so much.......it worked for me
You're welcome! ✌️
one of coolest dudes out there
i did it thanks to you!!! thanks a lot :))
Thanks its now working
It didn't run, it says '-static- libgcc -lbgi ' unrecognized command line option
It woooooooorks, thank you so much :)
Your video helped me a lot. thank you very much!
Glad it helped! You're most welcome :)
Thanks a lot Sir😃
It's working brother Thanks 😊
It's working , thank you for your help😊
Glad it helped you.. You're welcome! :)
man you are just awesome, thank you so much
sir its saying that C:\Program Files (x86)\Dev-Cpp\MinGW64\include\graphics.h [Error] sstream: No such file or directory
Write your program in C++ file and NOT C file.. Just rename your program file's name to "your_program_name.cpp"
@@codewar how to write in C
The process is same for windows 11 .....64bit......?
Yes
it's worked.Thanks a lot.
Thanks! It helps for me :3
thanks to indian tech support.
Great video.. It really works..
Is this method works in MacBook
Thank you re baba
It works! Thanks 💖
Thanks a lot, you solved my problem!
Thanks it worked great
Terimakasih bosqu sangat membantu
why to download it from his drive? its open source
Thank you so much🥰. Hare Krishna ❤️
Thanks a lot....👍
Thank you big boss for this help
Man, thank you very much, you helped me
Glad I could help.. you're most welcome :)
30 59 C:\Program Files (x86)\Dev-Cpp\MinGW64\include\graphics.h [Error] sstream: No such file or directory
BIG thank you bro!😍
Thank you so much sir🙏
Sir mere me zip file nahi hai please tell vo kaise extract karu?
did all copying and pasting process but could not open dev c++
sir i am getting [Error] unrecognized command line option '-static-libgcc-lbgi'@codewar
same error , trying many ways still cant fix , you can try change to 64 bit debug
it works.
Great buddy, thanks..
Thanks!! I executed successfully!! 👍
thank you very much! It helped a lot!
Thank u so much🥰🥰
Invalid suffix "gm" on integer constant error😢
Love you bro it works ❤
It's working the command prompt opens, but doesn't show the circle
The graphics ta does not open but the code is executed successfully. I sent you an email and attached screenshot
Yeah, I got your mail.
I have replied you some solution in your mail.. Follow it and let me know if that works for you..
thanks sir ..thanks a lot
It worked thanks a lot brother 👍🙂
Done exactly what you said in the video, when running it, saying cannot find -libgcc
Thanks for you attached resources
this video helped me, thank you very much !!!!!!!!!
You're welcome!!
thank you so much
Thanks man
thank u all solve the problem
Pls help some one my code is not running it is showing error that WinMain@16' is undefined reference
It gives error : [Error] unrecognized command line option '-static-libgcc-lbgi'
There must be a blank space between all the linker flags..
In Dev C++, go to Tools -> Compiler Options and correct it..
Follow the linker flags given below..
-static-libgcc -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32
@@codewar it worked thanks