Блог пользователя touristnct

Автор touristnct, история, 4 года назад, По-английски

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 :

https://ibb.co/LhYrZWK

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++.

  • Проголосовать: нравится
  • +3
  • Проголосовать: не нравится

»
4 месяца назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

how to i can run cpp in far-manager

»
4 месяца назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится

what is your *.exe file