Setting up Sublime Text for C++ Competitive Programming Environment

Configurare noua (How To)

Situatie

Sublime Text is a text editor for coding. It has a smooth user interface and other exciting features. During the live contest, it is always favorable to compile the program in a local IDE instead of an online IDE’s. MinGW is a native Windows port of the GNU Compiler Collection (GCC), with freely distributable import libraries and header files for building native Windows applications.

Solutie

Pasi de urmat
  • Download the MinGW file from https://sourceforge.net/projects/mingw/
  • Install all the Basic Setup of MinGW.
  • Mark all the packages for installation.
  • Click on the Apply Changes option under the Installation tab as shown below:

After completing the above steps, GCC is up and running. Now, the Environment Variable’s Path is to be updated. Follow the below steps for the same:

  • Go to My Computer, then Right Click to get Properties Advanced System Settings Environment Variables.

Now under the System Variables Tab, look for Path > Click on Path > Click on Edit > Click on New.

  • Now locate the bin folder inside the MinGW installation folder in the C drive.
  • Copy the path of the bin folder. By default, the path is: C:\MinGW\bin
  • Paste this new path in the list and click OK.

Now Sublime Text is able to access g++ from its terminal as the path variable has been updated.

Tip solutie

Permanent

Voteaza

(12 din 22 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?