Sublime Text 2 and MinGW

后端 未结 2 858
既然无缘
既然无缘 2021-02-09 19:53

Good day!

Can anyone share their experience how to attach MinGW-compiler to Sublime?

I found a config in the internet, but when I run compiled program popping bu

2条回答
  •  醉酒成梦
    2021-02-09 20:07

    Make sure to include the bin file in the "Path" variable on your system.

    Open the start menu and type "variable" or "environment variable" (or google it) to find how to do it. You'll get in a Window with a lot of variables, find the Path (and not PATH) variable and add the path to the bin folder of MinGW.

    And btw, as suggested, you should change file_base_name by file, and put file_base_name where you put file_base.

    Here's the command I personally use:

    "cmd": ["C:\\MinGW\\bin\\mingw32-g++.exe", "-Wall", "-time", "$file", "-o", "$file_base_name"]

提交回复
热议问题