touristnct's blog

By touristnct, history, 4 years ago, In English

Hello everyone,I am using Far Manager here is the main page of Far as a IDE and this blog will

tell you how to compile and run C++ 17 (64 bit) on Far Manager

If you are using Windows, you can easily install it via our minimalistic package manager PBOX running the command line pbox

install msys2-mingw64-9

You can create file associations in Far Manager. Go to Menu (F9) -> Commands (C) -> File associations (A), then make a new file

association (Insert): g++ -static -DONLINE_JUDGE -Wl,--stack=268435456 -O2 -std=c++17 !.cpp -o !.exe like on this picture :

Now, when you press Enter on a file, say, sol.cpp, the command g++ -static -DONLINE_JUDGE -Wl,--stack=268435456 -O2 -std=c++17

sol.cpp -o sol.exe will be executed. If all is well, the executable file e.exe will appear. For this to work, g++ must be already

in your PATH. Otherwise, provide the full path, like C:\Programs\msys2-mingw64-9\bin instead of just g++.

  • Vote: I like it
  • +3
  • Vote: I do not like it

| Write comment?
3 months ago, # |
  Vote: I like it 0 Vote: I do not like it

how to i can run cpp in far-manager

2 months ago, # |
  Vote: I like it +5 Vote: I do not like it

what is your *.exe file