GNU gcc in Windows (Student Guide)


  1. Install MinGW (gcc for windows)  http://sourceforge.net/projects/mingw/files/latest/download
  2. Add C:\MinGW\bin to path
  3. Download Sublime Text 2 Free   http://www.sublimetext.com/2
  4. creat a new Build System as follow Tools>Build System> New Build System
  5. copy and past following {
      "cmd" : ["gcc", "-Wall","-ansi", "-pedantic-errors", "$file_name", "-o", "${file_base_name}.exe","&&","start","cmd","/k","$file_base_name"],
        "selector" : "source.c",
          "shell":true,
            "working_dir" : "$file_path"
              }
            1. Save it and Now you can build your codes!!!


            Comments