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

КОМЕНТАРІ • 389

  • @codewar
    @codewar  3 роки тому +21

    **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.

    • @LearnwithRohit-od1hw
      @LearnwithRohit-od1hw 3 роки тому +1

      Sir i am using visual studio code and with in mingw how can i add graphics.h header file in this help me sir

    • @nachiketmore9068
      @nachiketmore9068 3 роки тому

      Everything runs perfectly with no error. The code runs good but the Windows BGI window doesn't show up. It shows only CMD.

    • @codewar
      @codewar  3 роки тому +3

      @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

    • @sripraneeth808
      @sripraneeth808 3 роки тому

      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

    • @codewar
      @codewar  3 роки тому

      @Sri_Praneeth
      Mail me screenshot of your program, build log and output (if any) at rp181135198@gmail.com

  • @adammarjanovic9967
    @adammarjanovic9967 3 роки тому +5

    Broo this work! After too many hours of trying, watching the video finally works. You have drink from me!

  • @Chameleonqqq
    @Chameleonqqq Рік тому +3

    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!

  • @mayurtummewar3312
    @mayurtummewar3312 Місяць тому +3

    worked flawlessly ❤❤❤❤❤❤
    just be sure to download latest version of Dev C++

  • @Lunaticrj2204
    @Lunaticrj2204 Рік тому +2

    Thank you so much I've been struggling for past 3 days to do graphics installation

  • @Charcoholicc
    @Charcoholicc 3 роки тому +2

    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.

  • @parthsatvekar5411
    @parthsatvekar5411 Рік тому

    thank you bro, for the guys reading this, the method he told works but just ensure you place spaces properly

  • @jenishghimire6678
    @jenishghimire6678 9 місяців тому

    Thanks Brother.
    Guys, this actually works.
    Just do all the things he has mentioned in the video.

  • @ripunjaygiri5289
    @ripunjaygiri5289 10 місяців тому

    It's working bro 🎉
    Thank you so much😊
    You deserve millions of subscribers bro.. ❤

  • @maazsiddiqui3326
    @maazsiddiqui3326 2 роки тому

    Thank you sooooooo mucccchhh brother .. finally it worked... 😍😍
    i was so tired by watching videos again and again ..TYSM

  • @RANJANKUMAR-y6f1g
    @RANJANKUMAR-y6f1g 5 місяців тому

    After spending tooo much time for output finely i got your video this helped me alot

    • @JERRY-ii4ke
      @JERRY-ii4ke 4 місяці тому

      hey did you really do this?

    • @JERRY-ii4ke
      @JERRY-ii4ke 4 місяці тому

      I tried doing the same thing but it is still showing an error

  • @rohitpol
    @rohitpol 3 роки тому +7

    Thank you so much 😊
    I was struggling with codeblocks but you made it so easy

  • @shubhamkumarsah742
    @shubhamkumarsah742 2 роки тому +1

    Thanks bro, i was struggling since 3 hours, you solved my problem.

  • @gibsonedowan
    @gibsonedowan 8 місяців тому

    I have benefited a lot. I had no idea on graphics set up. Thanks

  • @ritechaserious
    @ritechaserious 2 місяці тому

    oh sir, may GOD bless you sir, after wandering a lot we found this usefull video OMG, thank you thank you so much sir🙏🙏🙏

  • @amineaitsaidi5919
    @amineaitsaidi5919 Рік тому

    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.

  • @मराठासाम्राज्य-ग2घ

    Thanks brother 😊..jay bhavani jay shivray 🚩🙏

  • @pearjambo
    @pearjambo Рік тому

    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

  • @punctual_guy
    @punctual_guy 3 роки тому +1

    thanks lot. i was facing problem with graphics programming. u saved me

  • @faizh6438
    @faizh6438 Рік тому

    Thanks after trying for hours, finally i got a right video which helped me🙌🙌

  • @samadhanshewale.....47
    @samadhanshewale.....47 Рік тому

    Successfully complete
    Thank you sir 🙏🙏

  • @trungkien1535
    @trungkien1535 2 роки тому

    Thank you very much !!! It worked !!!Love your vid

  • @syedaimtiyaz8842
    @syedaimtiyaz8842 4 місяці тому

    I have been stuck for this setup process for last 2 days. Now it finally worked.. thank you brother

  • @invader63
    @invader63 2 роки тому +2

    thank u so much for this great video. You helped me a lot and saved me from using turbo

  • @qalbe.nadaan2824
    @qalbe.nadaan2824 3 роки тому +1

    you make this too much easy for me . it helps alot imn my final project thankyou

  • @lawrencerodriques7153
    @lawrencerodriques7153 3 роки тому +1

    Thanks bro tried different ide but didn't came help a lot thanks 👍🏻

  • @tanvichillal4430
    @tanvichillal4430 3 місяці тому

    thanks i was able to do it within 10mins

  • @rayoscrost
    @rayoscrost 2 роки тому +1

    the file names are changed but this works on ver 6.3 too. thanks a lot

  • @varundasari7454
    @varundasari7454 3 роки тому +1

    You deserve 10 likes from one user👌🏻

  • @hirushlivingmoments9827
    @hirushlivingmoments9827 6 місяців тому

    thank YOU so much brother...... you just gave me relax on it ........................................

  • @ЖаннаБелецкая-ж7э
    @ЖаннаБелецкая-ж7э 2 роки тому

    Thanks a lot!!! It's working and I can finally start doing my projects ahhhh Thanks again x x x

  • @HumairaRazi-7
    @HumairaRazi-7 3 місяці тому

    Thanks dude! It really helped us, may ALLAH bless you.

  • @priyankabehera8288
    @priyankabehera8288 2 роки тому

    thankyou very much sir it's very help full for me ....

  • @jamesmurinio5815
    @jamesmurinio5815 2 роки тому +2

    Hi, I have a problem. I set everything as you did but I got an error "cannot find -libgcc"

  • @shivramdeshmukh6113
    @shivramdeshmukh6113 Рік тому +6

    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

  • @SurangaU.Bandara
    @SurangaU.Bandara 3 роки тому +1

    Grate man.. You are genius...

  • @greenkerbal632
    @greenkerbal632 3 роки тому +6

    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?

    • @codewar
      @codewar  3 роки тому +3

      @green_kerbal
      Both are wrong flags, copy and paste flags given below and try again
      -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32

    • @shreyashfandat
      @shreyashfandat 3 роки тому

      @@codewar same issue with me
      Still the error coming

    • @shreyashfandat
      @shreyashfandat 3 роки тому

      @@codewar please help me sir

    • @codewar
      @codewar  3 роки тому +4

      @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

    • @javhaasuhochir8126
      @javhaasuhochir8126 2 роки тому

      @@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.

  • @devanshurawat826
    @devanshurawat826 10 місяців тому +1

    Setup completed successfully. Perhaps my linker options that I added earlier were removed when I changed the compiler to 32bit. Now resolved.

  • @anything3690
    @anything3690 Рік тому +1

    error is showing no such file or directory. How to fix it?

  • @chinmayjain9705
    @chinmayjain9705 3 роки тому +1

    Thanks so much finally it work for me

  • @mrdanceroriginal
    @mrdanceroriginal 3 роки тому +1

    OMG thank you very mush 😂😁

  • @inigoelias5690
    @inigoelias5690 2 роки тому

    Thank you so much Sir, greetings from Mexico!

  • @Navinkumar-be5hb
    @Navinkumar-be5hb 2 роки тому +1

    bro youre hero i was trying to do this since last 3-5 days but finally made it just because of you

  • @kushal6065
    @kushal6065 Рік тому +1

    I got an error:
    Failed to execute "C:\Users\Acer Aspire 7\Desktop\Untitled1.exe":
    Error 193: %1 is not a valid Win32 application.

  • @phamthanhlinh3043
    @phamthanhlinh3043 2 роки тому

    Thank you so much bro. Appreciate this :33

  • @heyitsritu
    @heyitsritu Рік тому +1

    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???

  • @satyammeena
    @satyammeena 3 роки тому +1

    Great Video! 100% worked. thanks.

  • @friedchicken338
    @friedchicken338 2 роки тому

    sheeessh this is lit bro.,.,.,,thanks

  • @jacknjill5498
    @jacknjill5498 3 роки тому +1

    thank you so much.......it worked for me

    • @codewar
      @codewar  3 роки тому

      You're welcome! ✌️

  • @tinarai01
    @tinarai01 Рік тому

    one of coolest dudes out there

  • @Grunge616
    @Grunge616 3 місяці тому

    i did it thanks to you!!! thanks a lot :))

  • @dearvirus
    @dearvirus 4 місяці тому

    Thanks its now working

  • @ParishayGul-b6d
    @ParishayGul-b6d Місяць тому

    It didn't run, it says '-static- libgcc -lbgi ' unrecognized command line option

  • @hindbakhbach9589
    @hindbakhbach9589 3 місяці тому

    It woooooooorks, thank you so much :)

  • @nguyenthanhtam6288
    @nguyenthanhtam6288 3 роки тому +4

    Your video helped me a lot. thank you very much!

    • @codewar
      @codewar  3 роки тому +2

      Glad it helped! You're most welcome :)

  • @shoaib_shortsss
    @shoaib_shortsss 4 місяці тому

    Thanks a lot Sir😃

  • @muhammadawais2309
    @muhammadawais2309 Рік тому

    It's working brother Thanks 😊

  • @thakorshyam2889
    @thakorshyam2889 3 роки тому +1

    It's working , thank you for your help😊

    • @codewar
      @codewar  3 роки тому +1

      Glad it helped you.. You're welcome! :)

  • @Alwolfxx
    @Alwolfxx 2 роки тому +1

    man you are just awesome, thank you so much

  • @pranavdeshpande6779
    @pranavdeshpande6779 3 роки тому +2

    sir its saying that C:\Program Files (x86)\Dev-Cpp\MinGW64\include\graphics.h [Error] sstream: No such file or directory

    • @codewar
      @codewar  3 роки тому +2

      Write your program in C++ file and NOT C file.. Just rename your program file's name to "your_program_name.cpp"

    • @tacticalcodenotes9420
      @tacticalcodenotes9420 4 місяці тому

      @@codewar how to write in C

  • @adithyapatil8542
    @adithyapatil8542 2 роки тому

    The process is same for windows 11 .....64bit......?

  • @daylightvms146
    @daylightvms146 2 роки тому

    it's worked.Thanks a lot.

  • @Yilativ7
    @Yilativ7 3 роки тому +2

    Thanks! It helps for me :3

  • @karanrarokar6094
    @karanrarokar6094 3 роки тому +1

    Great video.. It really works..

  • @reelrhythms1
    @reelrhythms1 10 місяців тому

    Is this method works in MacBook

  • @ShruKavitake
    @ShruKavitake Місяць тому

    Thank you re baba

  • @MaxCse18
    @MaxCse18 3 роки тому +1

    It works! Thanks 💖

  • @gustavovazquez9999
    @gustavovazquez9999 2 роки тому

    Thanks a lot, you solved my problem!

  • @shreyatokdar5870
    @shreyatokdar5870 7 місяців тому

    Thanks it worked great

  • @sabarkin-pictures
    @sabarkin-pictures 3 роки тому +1

    Terimakasih bosqu sangat membantu

  • @stavros222
    @stavros222 17 днів тому

    why to download it from his drive? its open source

  • @fuhinlouy8940
    @fuhinlouy8940 3 роки тому

    Thank you so much🥰. Hare Krishna ❤️

  • @shrutiganbote1393
    @shrutiganbote1393 Рік тому +1

    Thanks a lot....👍

  • @shivamsharma-qv5pf
    @shivamsharma-qv5pf 3 роки тому

    Thank you big boss for this help

  • @tomatohater09
    @tomatohater09 3 роки тому +1

    Man, thank you very much, you helped me

    • @codewar
      @codewar  3 роки тому

      Glad I could help.. you're most welcome :)

  • @prithvigupta8215
    @prithvigupta8215 2 роки тому +1

    30 59 C:\Program Files (x86)\Dev-Cpp\MinGW64\include\graphics.h [Error] sstream: No such file or directory

  • @iamsairash
    @iamsairash 2 роки тому

    BIG thank you bro!😍

  • @rahul-033
    @rahul-033 Рік тому

    Thank you so much sir🙏

  • @AjaySingh-qi5wp
    @AjaySingh-qi5wp Місяць тому

    Sir mere me zip file nahi hai please tell vo kaise extract karu?

  • @kushaldevkota5035
    @kushaldevkota5035 11 місяців тому

    did all copying and pasting process but could not open dev c++

  • @30.ayushyadav41
    @30.ayushyadav41 Рік тому +1

    sir i am getting [Error] unrecognized command line option '-static-libgcc-lbgi'@codewar

    • @baoinhgia6252
      @baoinhgia6252 10 місяців тому

      same error , trying many ways still cant fix , you can try change to 64 bit debug

  • @Adarsha3
    @Adarsha3 Рік тому

    it works.

  • @sauravdas8390
    @sauravdas8390 3 роки тому +1

    Great buddy, thanks..

  • @amitkshirsagar6120
    @amitkshirsagar6120 2 роки тому

    Thanks!! I executed successfully!! 👍

  • @RevsAndWheels
    @RevsAndWheels Рік тому

    thank you very much! It helped a lot!

  • @jahinsultana3071
    @jahinsultana3071 3 роки тому +1

    Thank u so much🥰🥰

  • @tgggefevegeg6430
    @tgggefevegeg6430 Рік тому

    Invalid suffix "gm" on integer constant error😢

  • @yashbajpai9253
    @yashbajpai9253 3 роки тому

    Love you bro it works ❤

  • @thiyagarajank9666
    @thiyagarajank9666 Рік тому

    It's working the command prompt opens, but doesn't show the circle

  • @lokeshkatikapalli3405
    @lokeshkatikapalli3405 3 роки тому +1

    The graphics ta does not open but the code is executed successfully. I sent you an email and attached screenshot

    • @codewar
      @codewar  3 роки тому +1

      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..

  • @manishasaini3012
    @manishasaini3012 2 місяці тому

    thanks sir ..thanks a lot

  • @syedmtaha7099
    @syedmtaha7099 2 роки тому

    It worked thanks a lot brother 👍🙂

  • @HACKER-dn3ib
    @HACKER-dn3ib 9 місяців тому

    Done exactly what you said in the video, when running it, saying cannot find -libgcc

  • @CaptainCoder1
    @CaptainCoder1 5 місяців тому

    Thanks for you attached resources

  • @saramemisevic8546
    @saramemisevic8546 3 роки тому

    this video helped me, thank you very much !!!!!!!!!

    • @codewar
      @codewar  3 роки тому +1

      You're welcome!!

  • @PhatNguyen-jb1uy
    @PhatNguyen-jb1uy 2 роки тому +1

    thank you so much

  • @ammaranosheen1530
    @ammaranosheen1530 3 роки тому +2

    Thanks man

  • @ch.pervezahmed9262
    @ch.pervezahmed9262 3 роки тому

    thank u all solve the problem

  • @mindset2909
    @mindset2909 Рік тому

    Pls help some one my code is not running it is showing error that WinMain@16' is undefined reference

  • @aliahmad9626
    @aliahmad9626 2 роки тому

    It gives error : [Error] unrecognized command line option '-static-libgcc-lbgi'

    • @codewar
      @codewar  2 роки тому

      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

    • @mayur7670
      @mayur7670 2 роки тому

      @@codewar it worked thanks