How to set up 'make' on Windows [Tutorial]

Поділитися
Вставка
  • Опубліковано 22 січ 2025

КОМЕНТАРІ • 136

  • @michaelslifecycle
    @michaelslifecycle Рік тому +9

    In cs50 they just went straight into teaching us code on VS code and completely skipped telling us how to set it up. I was completely dumbfounded getting so many error messages just trying to type hello, world XD
    I can't believe this is the only tutorial online and this took me 2 hours to do lol. Thank you so much!

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

      It is not only your problem, week one gave mi so big problems, now Im on week for, still dont use cs50 version of vs code and im trying to compile good mi program

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

      Hey, I'm also coming from CS50 Harvard. How did you get yours to work? I'm using a Windows machine, and I've installed it and followed all the instructions, but I'm still having problems compiling the code with 'make.

    • @ProgrammerPenguin
      @ProgrammerPenguin 4 місяці тому +1

      that's your problem, cs50 says to use the cs50 codespace vscode, which has everything installed already......

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

      @@ProgrammerPenguin so delete the vscode we have now and download the CS50 codespace? im assuming from the CS50Xharvard site?

  • @kjafhjfajshf
    @kjafhjfajshf 4 роки тому +17

    It's the best tutorial, i've found. I have spend half a day without success trying to run make. And finally run in after this 6min video. Many-many thanks for that!!!!

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

      Hello.. In my case, I still have the issue that make is not recognized ; exactly as we can observe by the end of the video.. any suggestion !!!

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

      ​@@seifelfetni5677 me too got the same error? how to solve?

  • @TXORN-hw2tw
    @TXORN-hw2tw 2 роки тому

    I've been searching the web for hours trying to find a solution. THANK YOU SO MUCH

  • @cranstonmcmegido8069
    @cranstonmcmegido8069 2 роки тому +13

    If you had issues with the last part like I did, you need to save the make file as a batch and remove the $* part.

    • @leejuhsu
      @leejuhsu 8 місяців тому +1

      Thank you soooooo much!

    • @ahmadri7908
      @ahmadri7908 3 місяці тому +1

      thank you ❤

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

    Thanks for the video. From Brazil my friend.
    Never say you're sorry for being German, be proud!

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

    When I finally call make, it says "This version of C:\MinGW\bin\make.exe is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher". When I try to install mingw64-make, it says "mingw-get: *** ERROR *** mingw64-make: unknown package".

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

      sis u solve that error??

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

      did you solve it?

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

      @@pawelbiniak I did. But it's been really long, I don't remember. Use visual studio installer, go to components and check make. I am not sure but worth a try.

  • @medhannioui1167
    @medhannioui1167 4 роки тому +13

    I created the file 'bin/make' with the content 'mingw32-make.exe $*' but it didn't work. As you mentioned it, i tried to add the 'exe' extension ('make.exe') but it didn't work either.

  • @BorlandC452
    @BorlandC452 2 роки тому +10

    Would you be able to just rename the file "mingw32-make.exe" to "make.exe"? I did that with my install of MinGW, and no problems so far. As long as none of the other paths in the PATH environment variable have a "make.exe" executable I would think it would be fine.

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

      Works for me. Thanks.

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

      Obrigado pela contribuição, resolvida com sua dica, outubro de 2024

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

      THIS worked, thank you for the comment, have a good Christmas!

  • @smarttradzt4933
    @smarttradzt4933 3 роки тому +34

    for those having trouble with windows 64bit incompatibility...here's the solution (copied from another comment hidden at the bottom..
    "This fixed the 64 bit issue for me. Thanks!
    Here's the translation. Google translate did a good job though.
    "
    This is what worked for me:
    0. Delete the "make" or "make.exe" if you have already created them
    1. Open cmd [Make sure to run as admin]
    2. "cd C:\MinGW\bin" (may differ if MinGW is in a different path)
    3. "mklink make.exe mingw32-make.exe"
    I hope it works
    "

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

    how did he open his shell in 4:01

  • @DontSnowMe
    @DontSnowMe 4 роки тому +17

    I had issues with the last part as well. I made a copy of the mingw32-make.exe file and renamed it make.exe

    • @nehashivhare6874
      @nehashivhare6874 4 роки тому

      Restarting the command prompt at the end worked out for me

    • @aakashtiwari3677
      @aakashtiwari3677 4 роки тому +1

      I had same issue regarding text file. So I just saw your comment and did the same process and it worked. Thanks

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

      Worked for me, thanks.

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

      Thanks man, worked for me too

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

    Thanks you very much man, everything finally works!
    on a side note, I didn't have anything installed to work with C beforehand, turns out I forgot to install GCC, did it through MinGW and now everything is fine

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

    when you install: " MinGW - Minimalist GNU for Windows" and you uncheck the option: " ... also install support for the graphical user interface" and you with the mouse cursor pointing the software mentioned before; you try to open the Git SCM Git BASH; what is the keyboard shortcut to do that ?

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

    How did you open that min64gw cmd window? You never said that in the video.

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

    why wouldnt you show us how to open the installation directory, now im lost

  • @marv_
    @marv_ 4 роки тому +1

    Danke Pascal, quick & easy. Hat mir so schnell geholfen, dass ich sogar noch Zeit habe, diesen Kommentar zu schreiben und den like button zu drücken.

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

    At the end .make doesn't work.Right?

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

    I have this issue
    This version of C:\MinGW\bin\make.exe is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.
    Please help

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

    How do you open the MINGW64 thing?

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

    How do I get that color cmd with $, when I type cmd I only get the plain command line which does not seem to work like your cmd

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

    Plz share the link to setup the environment in first step for Mingw

  • @polymix2971
    @polymix2971 4 роки тому +22

    You can just rename the mingw32-make.exe to make.exe

    • @Cwczapper
      @Cwczapper 4 роки тому

      Thinking smarter not harder ;)

    • @getthebagtoday
      @getthebagtoday 4 роки тому

      XD

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

      This really worked, thank you so much.

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

      @Christian Mains Thank you, that solved my problem- I also got a popup warning that the program is incompatible with 64 bit windows, but renaming mingw32-make.exe to make.exe fixed it.

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

      but what is he actually writing in that file? mingw32-make.exe and then? I cant see it.

  • @cioccarellimi
    @cioccarellimi 4 роки тому +4

    Hey, I was following this tutorial but at the last step, creating make.exe in bin, my laptop says that it isn't compatible with the 64bit version of windows, can you help me?

    • @Seff2
      @Seff2 4 роки тому

      same problem....

    • @christopherwink7580
      @christopherwink7580 4 роки тому +5

      Hat bei mir funktioniert:
      0. Lösch die "make" oder "make.exe", falls du sie schon erstellt hast
      1. Öffne cmd
      2. "cd C:\MinGW\bin" (kann bei abweichen, wenn MinGW in einem anderen Pfad ist)
      3. "mklink make.exe mingw32-make.exe"
      Ich hoffe es funktiniert

    • @brendan-uk4cg
      @brendan-uk4cg 3 роки тому +1

      @@christopherwink7580 Thanks! / Danke

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

      This fixed the 64 bit issue for me. Thanks!
      Here's the translation. Google translate did a good job though.
      "
      This is what worked for me:
      0. Delete the "make" or "make.exe" if you have already created them
      1. Open cmd [Make sure to run as admin]
      2. "cd C:\MinGW\bin" (may differ if MinGW is in a different path)
      3. "mklink make.exe mingw32-make.exe"
      I hope it works
      "

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

      @@austinhruska7473 Thank you sooooo muchhh ,it worked for me ,thanks a lot for the translation

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

    hey there, I'm using Windows 11 now and when I tried following your steps, most worked fine but in the end when we make a proxy executable and run that, my computer throws an error saying that 32 bit software architecture is not supported. Is there anything I can do for that?

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

    What have you done in 4:03

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

      ctrl+r and cmd

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

    can someone pls tell me how did he get that mingw shell window

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

    Pascal vielen Dank!!
    Multiple StackOverflow Forums and Tutorials and none of them goes so straight to the point and actually helps like you did!!
    Thanks for this really explanatory video.

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

    Hey thanks for the tutorial. I can compile single cpp files but how do i compile my main which links to a header file.h; Can someone help

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

    @PascalLandau :
    Thanks ! You saved me a ton of work !
    The Blog the Video and the description was helpful

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

    Maybe someone can help me... I did everything as it was shown, but my c++ programm still doesn't start

  • @DrWar-hg4tr
    @DrWar-hg4tr 3 роки тому

    Im having a problem, is saying that my version of make isnt compatible with my windows version, do you know how to solve it?

    • @DrWar-hg4tr
      @DrWar-hg4tr 3 роки тому

      I found the solucion yet, it's just change the name of file for, make.bat

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

    you can do everything from cmd line. Just go to bin folder. then copy exe file for a backup (copy mingw32-make.exe mingw32-make.exe.bak) then (ren mingw32-make.exe make.exe) then move to shell location, instead of adding path (copy make.exe C:\windows\system32\) and all relevant dll's (Copy *.dll c:\windows\system32\) or all files if you want (copy *.* C:\windows\system32)
    Cheers

  • @jgoep2310
    @jgoep2310 3 роки тому +8

    "Sorry for being German…" - I was not prepared for such a political statement :D

  • @mariacancino95
    @mariacancino95 4 роки тому

    i just want to open a .exe file from a github project, the instructions says type make then type ./project.exe idk what this is about, pls help

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

    Great tutorial, Please try to zoom it on the important details, Sometimes they are not visible even in 1080p.

  • @ManojKumar-zb8ki
    @ManojKumar-zb8ki 4 роки тому +1

    Hello all,
    I am getting error... i tried make.exe make.bat but still getting error.
    Error is .... the term ‘make’ is not recognized as name of cmdlet, function, script file. Please check spelling of name, or if path was included.
    If anyone finds solution for this please post it here
    Thank you
    Note: I have included path in environment variable.

  • @Sebastian-69420
    @Sebastian-69420 Рік тому

    5:08 "sorry for being german" 😂😂

  • @TechWithKomal
    @TechWithKomal 4 роки тому +2

    I watched this video to solve my issues with make command but it doesn't helped me😐

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

    make not working

  • @RodrigoSantos-jl3pc
    @RodrigoSantos-jl3pc 3 роки тому

    Hi, I'm really new to this, if I follow these steps will I be able to use make in visual studio code?

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

    Great it works. but it won't work in the vs code inbuilt bash terminal.

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

    Wollt ihr mich alle verarschen? Wie heißt denn das Programm mit dem du die Befehle ausführst welches so aussieht wie bei Linux??? Wieso zeigt das keiner? :D

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

    Thanks for the tutorial, it helped me a lot! but why not just rename mingw32-make to make?

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

    thank you bro! GOD bless you! mine worked at a go, thanks alot!

  • @VolkansSpace
    @VolkansSpace 4 роки тому +2

    it works! Thanks a lot.

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

    Thank you for the concise video! Also, what were you using for shell? I recognize that icon, but cannot remember the name of it. Is it part of mingw? Right now I'm working through cmd. :(

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

      @Ecc Choon I believe it was git.

  • @domfp133
    @domfp133 4 роки тому +1

    Perfect it's all I needed, thanks

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

    i would recommend you do not make a new file at the end but rename the exe file to make

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

    Oh, it is still not really clear.

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

    Thank you !! Its really helpful.

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

    6:43 Its Makefile

  • @h.k3260
    @h.k3260 11 місяців тому

    Reposting comments here: If the vid doesnt help: name the file make.bat, it does the same thing, or just reaname mingw32-make to make

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

    6:20 dude just rename "mingw32-make.exe" to "make.exe"

  • @ilanlee3025
    @ilanlee3025 4 роки тому +1

    Thanks! Very helpful!

  • @MrRonychakraborty
    @MrRonychakraborty 4 роки тому

    Please make a tutorial for Arduino make. How to compile and upload to arduino with make.

  • @juan-miguelgracia3700
    @juan-miguelgracia3700 4 місяці тому

    Lo que aparece en la pantalla está difuminado durante los primeros 60 s

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

    Can also use official windows make installing GnuWin32. You're video helped me successfully connect all the pieces though. I missed one \ on path variables, Good video

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

    this is blur I barely can see anything

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

    so helpful ! thanks

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

    thanks, good work

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

    many thanks to you

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

    Thank you you ended a days problem!

  • @nehashivhare6874
    @nehashivhare6874 4 роки тому

    Vielen dank @Pascal. For the problem at the end, you just have to restart your command prompt:)
    Prost🍻

  • @samlk5200
    @samlk5200 4 роки тому +1

    I had to additionally run following commands.
    mingw-get install gcc
    mingw-get install g++
    mingw-get install msys-base

  • @JoseLopez-lk3xm
    @JoseLopez-lk3xm 3 роки тому

    Great video Thanks!!

  • @MrTranTiVi
    @MrTranTiVi 4 роки тому

    thank you so much.

  • @mousumgogoi163
    @mousumgogoi163 4 роки тому

    This really works but later you will have problems like " 'printf' is not recognised as internal or external command " if your makefile has a @printf in it. So it is better if you past this in your path variable "C:\MinGW\msys\1.0\bin\make.exe".

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

      What's the difference

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

      @@mrmoinn Honestly I have no idea, I tried to look it up. But for the moment it is beyond me.
      msys is a directory that is separately installed while you install mingw from mingw-installer, you have to select it while installing.

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

    thanks u so much, like for real, thank you

  • @ИгорьГориховский
    @ИгорьГориховский 3 роки тому

    THANKS A LOT MAN!!!

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

    Thank you!

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

    спасибо за видео

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

    aint no way bro said sorry for being german 💀

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

    thanks