The cc command doesn't work

  • PlagueGiver
    25th Jan 2014 Member 0 Permalink

    I followed the instructions in https://powdertoy.co.uk/Wiki/W/Compiling_for_Windows_with_scons.html#Add_variables_to_Path word for word, but when I put cc into git bash, it says "cc: command not found". python -h works, (I'm a Python programmer, so I had Python before this) and scons.py also works. Please tell me what I'm  doing wrong.

  • jacob1
    25th Jan 2014 Developer 0 Permalink
    Try looking in C:/MinGW/bin. That's where cc.exe should be, along with a bunch of other things. Is anything in there? Maybe MinGW installed incorrectly, the installer was redone and the guide hasn't been updated to say which specific packages you need.
  • PlagueGiver
    25th Jan 2014 Member 0 Permalink

    The only thing in the bin is mingw-get. Should I reinstall?

  • jacob1
    25th Jan 2014 Developer 0 Permalink
    It should have installed something called MinGW Installation manager, i'll try to figure out what you need

    Edit: Install mostly anything that looks good I guess :p, but specifically cc.exe is provided by the bin version of mingw32-gcc. You might also need the dev version I don't know. Get mingw32-binutils too. Not sure if you need anything else, we will see. I found all these under the MinGW Base system category.
    Edited 2 times by jacob1. Last: 25th Jan 2014
  • PlagueGiver
    25th Jan 2014 Member 0 Permalink

    I got all the C compiler, C++, FORTRAN, and bzip2. Taking a while to install, hopefully it works :)

     

    I'm on my FIFTH reinstall! :(

     

    I give up. No mingw for me :(

    Edited 2 times by PlagueGiver. Last: 25th Jan 2014