How to setup graphics.h in Dev C++ | CodeWar

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ธ.ค. 2024

ความคิดเห็น • 384

  • @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 2 ปีที่แล้ว

      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  2 ปีที่แล้ว

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

  • @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!

  • @adammarjanovic9967
    @adammarjanovic9967 3 ปีที่แล้ว +5

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

  • @mayurtummewar3312
    @mayurtummewar3312 10 วันที่ผ่านมา +3

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

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

  • @Lunaticrj2204
    @Lunaticrj2204 ปีที่แล้ว +2

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

  • @parthsatvekar5411
    @parthsatvekar5411 11 หลายเดือนก่อน

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

  • @RANJANKUMAR-y6f1g
    @RANJANKUMAR-y6f1g 3 หลายเดือนก่อน

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

    • @JERRY-ii4ke
      @JERRY-ii4ke 3 หลายเดือนก่อน

      hey did you really do this?

    • @JERRY-ii4ke
      @JERRY-ii4ke 3 หลายเดือนก่อน

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

  • @ripunjaygiri5289
    @ripunjaygiri5289 9 หลายเดือนก่อน

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

  • @jenishghimire6678
    @jenishghimire6678 8 หลายเดือนก่อน

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

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

  • @ritechaserious
    @ritechaserious หลายเดือนก่อน

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

  • @maazsiddiqui3326
    @maazsiddiqui3326 2 ปีที่แล้ว

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

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

  • @gibsonedowan
    @gibsonedowan 7 หลายเดือนก่อน

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

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

    Thanks brother 😊..jay bhavani jay shivray 🚩🙏

  • @punctual_guy
    @punctual_guy 3 ปีที่แล้ว +1

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

  • @qalbe.nadaan2824
    @qalbe.nadaan2824 3 ปีที่แล้ว +1

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

  • @invader63
    @invader63 2 ปีที่แล้ว +2

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

  • @faizh6438
    @faizh6438 ปีที่แล้ว

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

  • @rayoscrost
    @rayoscrost 2 ปีที่แล้ว +1

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

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

    • @Luffy7765
      @Luffy7765 8 หลายเดือนก่อน

      same

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

  • @HumairaRazi-7
    @HumairaRazi-7 หลายเดือนก่อน

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

  • @lawrencerodriques7153
    @lawrencerodriques7153 3 ปีที่แล้ว +1

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

  • @jamesmurinio5815
    @jamesmurinio5815 2 ปีที่แล้ว +2

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

  • @varundasari7454
    @varundasari7454 3 ปีที่แล้ว +1

    You deserve 10 likes from one user👌🏻

  • @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 9 หลายเดือนก่อน +1

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

  • @trungkien1535
    @trungkien1535 2 ปีที่แล้ว

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

  • @ЖаннаБелецкая-ж7э
    @ЖаннаБелецкая-ж7э 2 ปีที่แล้ว

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

  • @samadhanshewale.....47
    @samadhanshewale.....47 ปีที่แล้ว

    Successfully complete
    Thank you sir 🙏🙏

  • @tanvichillal4430
    @tanvichillal4430 2 หลายเดือนก่อน

    thanks i was able to do it within 10mins

  • @priyankabehera8288
    @priyankabehera8288 2 ปีที่แล้ว

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

  • @ShambhuVibe
    @ShambhuVibe 3 ปีที่แล้ว +3

    Instead of void main () why should we make int main()? And when I perform the DDA line drawing algorithm two pop-up windows pop up . And suddenly closes. Why is it so?

    • @codewar
      @codewar  3 ปีที่แล้ว +1

      1) The short answer, is because the C++ standard requires main() to return int . As you probably know, the return value from the main() function is used by the runtime library as the exit code for the process. Both Unix and Win32 support the concept of a (small) integer returned from a process after it has finished. This can also help in finding reason of program crash issues when you develop it.. You might have noticed that you write "return 0;" at the end of your main() function.. So if your program returns 0 after execution, then it means your program is executed successfully.. Any other return code means there is some issues in the code..
      2) One of those two windows is graphics window where you can draw any graphics related stuffs and another one is the command line window which you can use to print logs using "printf()" or "cout".. You can also use it for your debugging purpose.. Command line window can be disabled from the settings of your IDE but do it only when your project is complete and you want to deploy it..
      3) Use getch() function to hold the output on the screen.

    • @dowlutfarhaan7593
      @dowlutfarhaan7593 3 ปีที่แล้ว

      Bro send your code of ludo game I need this urgently

  • @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 :)

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

  • @inigoelias5690
    @inigoelias5690 2 ปีที่แล้ว

    Thank you so much Sir, greetings from Mexico!

  • @syedaimtiyaz8842
    @syedaimtiyaz8842 2 หลายเดือนก่อน

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

  • @satyammeena
    @satyammeena 3 ปีที่แล้ว +1

    Great Video! 100% worked. thanks.

  • @hirushlivingmoments9827
    @hirushlivingmoments9827 4 หลายเดือนก่อน

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

  • @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 2 หลายเดือนก่อน

      @@codewar how to write in C

  • @chinmayjain9705
    @chinmayjain9705 2 ปีที่แล้ว +1

    Thanks so much finally it work for me

  • @SurangaU.Bandara
    @SurangaU.Bandara 3 ปีที่แล้ว +1

    Grate man.. You are genius...

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

  • @Alwolfxx
    @Alwolfxx 2 ปีที่แล้ว +1

    man you are just awesome, thank you so much

  • @anything3690
    @anything3690 ปีที่แล้ว +1

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

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

  • @thakorshyam2889
    @thakorshyam2889 3 ปีที่แล้ว +1

    It's working , thank you for your help😊

    • @codewar
      @codewar  3 ปีที่แล้ว +1

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

  • @fuhinlouy8940
    @fuhinlouy8940 2 ปีที่แล้ว

    Thank you so much🥰. Hare Krishna ❤️

  • @30.ayushyadav41
    @30.ayushyadav41 10 หลายเดือนก่อน +1

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

    • @baoinhgia6252
      @baoinhgia6252 8 หลายเดือนก่อน

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

  • @karanrarokar6094
    @karanrarokar6094 3 ปีที่แล้ว +1

    Great video.. It really works..

  • @jacknjill5498
    @jacknjill5498 3 ปีที่แล้ว +1

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

    • @codewar
      @codewar  3 ปีที่แล้ว

      You're welcome! ✌️

  • @Grunge616
    @Grunge616 หลายเดือนก่อน

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

  • @mrdanceroriginal
    @mrdanceroriginal 3 ปีที่แล้ว +1

    OMG thank you very mush 😂😁

  • @tomatohater09
    @tomatohater09 3 ปีที่แล้ว +1

    Man, thank you very much, you helped me

    • @codewar
      @codewar  3 ปีที่แล้ว

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

  • @Yilativ7
    @Yilativ7 3 ปีที่แล้ว +2

    Thanks! It helps for me :3

    • @kingslayer120
      @kingslayer120 3 ปีที่แล้ว +2

      thanks to indian tech support.

  • @gaurigauri9740
    @gaurigauri9740 2 ปีที่แล้ว

    Mere computer 64 bit hai toh mai Compiler options mae 32 bit wala option hi select krna hai ya phr 64 bit???
    And jo commands mae likhna hai vaha 32 likhna h ya 64??
    Please reply.......

    • @codewar
      @codewar  2 ปีที่แล้ว

      You have to choose 32bit as well. And you don't need to worry about that, just follow the video, it will work fine..

  • @gustavovazquez9999
    @gustavovazquez9999 2 ปีที่แล้ว

    Thanks a lot, you solved my problem!

  • @muhammadawais2309
    @muhammadawais2309 ปีที่แล้ว

    It's working brother Thanks 😊

  • @shoaib_shortsss
    @shoaib_shortsss 3 หลายเดือนก่อน

    Thanks a lot Sir😃

  • @rutujapatwari9283
    @rutujapatwari9283 3 ปีที่แล้ว +12

    i don't know what happened ....whenever i compile & run my code in dev c++ it is showing me 1450 error ! can u tell me solution

    • @rutujapatwari9283
      @rutujapatwari9283 3 ปีที่แล้ว +2

      Error 1450: Insufficient system resources exist to complete the requested service.

    • @IslamEcho
      @IslamEcho ปีที่แล้ว

      Can you Send code?

  • @jayesh4011
    @jayesh4011 3 ปีที่แล้ว

    [Error] unrecognized command line option '-static-libgcc-lbgi'
    This error please help

    • @codewar
      @codewar  3 ปีที่แล้ว

      There must be blank space between -static-libgcc and -lbgi
      Open Dev C++ and go to Tools->Compiler Options and correct it..
      Follow the linker flags given below..
      -static-libgcc -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32

  • @sauravdas8390
    @sauravdas8390 3 ปีที่แล้ว +1

    Great buddy, thanks..

  • @amitkshirsagar6120
    @amitkshirsagar6120 2 ปีที่แล้ว

    Thanks!! I executed successfully!! 👍

  • @afumedokekeju
    @afumedokekeju ปีที่แล้ว

    thanmk u so much sir luv u indian zuckerberg

  • @majdhdoyd849
    @majdhdoyd849 2 ปีที่แล้ว

    Are you operating on a 32 or 64 bit systhem?

    • @codewar
      @codewar  2 ปีที่แล้ว

      64bit OS

  • @syedmtaha7099
    @syedmtaha7099 2 ปีที่แล้ว

    It worked thanks a lot brother 👍🙂

  • @HACKER-dn3ib
    @HACKER-dn3ib 8 หลายเดือนก่อน

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

  • @shrutiganbote1393
    @shrutiganbote1393 ปีที่แล้ว +1

    Thanks a lot....👍

  • @shivamsharma-qv5pf
    @shivamsharma-qv5pf 2 ปีที่แล้ว

    Thank you big boss for this help

  • @adithyapatil8542
    @adithyapatil8542 ปีที่แล้ว

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

  • @MaxCse18
    @MaxCse18 3 ปีที่แล้ว +1

    It works! Thanks 💖

  • @iamsairash
    @iamsairash 2 ปีที่แล้ว

    BIG thank you bro!😍

  • @victorromeropena431
    @victorromeropena431 2 ปีที่แล้ว

    Hi friend I was reading the Thomas Wu book "An Introduction to Programming". He uses the GUIObj.j and Turtles.h objects...Where do I get those libraries...Iam studying for myself

  • @reelrhythms1
    @reelrhythms1 8 หลายเดือนก่อน

    Is this method works in MacBook

  • @Imran17172
    @Imran17172 3 ปีที่แล้ว +1

    It says cannot find -lbgi when i try to compile and run it.Can you help me please?

    • @codewar
      @codewar  3 ปีที่แล้ว

      Hello Imran,
      First make sure that you are running your code in "TDM-GCC 4.9.2 32-bit Release" mode..

    • @buquishezekeiahnhicole8855
      @buquishezekeiahnhicole8855 3 ปีที่แล้ว

      @@codewar still not working.... what will i do? help pls

    • @codewar
      @codewar  3 ปีที่แล้ว

      @Buquis
      Mail me screenshots of your program and Compiler Logs at rp181135198@gmail.com

  • @RevsAndWheels
    @RevsAndWheels ปีที่แล้ว

    thank you very much! It helped a lot!

  • @hindbakhbach9589
    @hindbakhbach9589 หลายเดือนก่อน

    It woooooooorks, thank you so much :)

  • @jahinsultana3071
    @jahinsultana3071 2 ปีที่แล้ว +1

    Thank u so much🥰🥰

  • @LearnwithRohit-od1hw
    @LearnwithRohit-od1hw 3 ปีที่แล้ว

    Sir mene aapki code blocks wali and ye dono videos dekhi h dono devc++ and code blocks m program run to ho jata h but output ni aata it shows that process exited with return value some aur mene aapke pass mail bhi ki h photo k sath plz sir help me

    • @codewar
      @codewar  3 ปีที่แล้ว

      Ok, I will check and let you know soon..

  • @saramemisevic8546
    @saramemisevic8546 3 ปีที่แล้ว

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

    • @codewar
      @codewar  3 ปีที่แล้ว +1

      You're welcome!!

  • @easycoding7214
    @easycoding7214 3 ปีที่แล้ว

    Hello bhai mujhe Windows 7 32 bit pr jdk install krna hai, koi solution batao , java install to ho jata hai pr run nahi hota

  • @friedchicken338
    @friedchicken338 2 ปีที่แล้ว

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

  • @tinarai01
    @tinarai01 ปีที่แล้ว

    one of coolest dudes out there

  • @rahul-033
    @rahul-033 ปีที่แล้ว

    Thank you so much sir🙏

  • @dearvirus
    @dearvirus 2 หลายเดือนก่อน

    Thanks its now working

  • @daylightvms146
    @daylightvms146 2 ปีที่แล้ว

    it's worked.Thanks a lot.

  • @shreyatokdar5870
    @shreyatokdar5870 6 หลายเดือนก่อน

    Thanks it worked great

  • @prithvigupta8215
    @prithvigupta8215 2 ปีที่แล้ว +1

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

  • @yashwant1910
    @yashwant1910 3 ปีที่แล้ว +1

    thankyou bro,,,,,,,,,,,❤❤

  • @diyaroy1560
    @diyaroy1560 3 ปีที่แล้ว

    Thank YOU!! You are awesome!

  • @ShruKavitake
    @ShruKavitake 10 วันที่ผ่านมา

    Thank you re baba

  • @mindset2909
    @mindset2909 ปีที่แล้ว

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

  • @treshacasonggay4473
    @treshacasonggay4473 3 ปีที่แล้ว

    Thank you bro!! It help alot

  • @VathanaSroeun
    @VathanaSroeun 2 ปีที่แล้ว

    It works, thanks so much ❤️

  • @nirnaypatil628
    @nirnaypatil628 3 ปีที่แล้ว

    sir, [Error] unrecognized command line option '-static-libgcc-lbgi'

    • @codewar
      @codewar  3 ปีที่แล้ว

      There must be a blank space between -lbgi and -static-libgcc
      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

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