You are here: PSPad forum > English discussion forum > PSPad + MSYS2
Posted by: AskMe | Date: 2023-09-19 13:51 | IP: IP Logged
After installing the program MSYS2, in the console window the command:
g++ hello.cpp -o hello
after execution creates file hello.exe
But, in PSPad Settings -> Highlighters Settings:
"C:\msys64\ucrt64\bin\g++.exe" "%File%" " -o hello"
after execution not creates file hello.exe
What do I need to change to get my hello.exe? It would be very convenient and fast.
Posted by: pspad | Date: 2023-09-19 14:30 | IP: IP Logged
remove last quotes, -o and result file name shouldn't be in quotes or enclode file name only, like this:
"C:\msys64\ucrt64\bin\g++.exe" "%File%" -o "hello"
Test your command line in Windows CMD (command interpreter)
Posted by: AskMe | Date: 2023-09-19 15:15 | IP: IP Logged
I tried rewriting the settings in different ways.
This should work:
"C:\msys64\ucrt64\bin\g++.exe" "%File%"
but it doesn't exe. There may be a discrepancy between these two programs. But it doesn’t matter, it’s quite enough to write the code in the editor and compile it separately. It's not critical, and I can work with this.
Posted by: pspad | Date: 2023-09-20 05:00 | IP: IP Logged
When you run it in CMD intepreter (Windows command line window), does it work?
Posted by: AskMe | Date: 2023-09-21 08:01 | IP: IP Logged
Yes, it works in command line.
Posted by: AskMe | Date: 2023-09-23 09:43 | IP: IP Logged
I cleaned my disk, cleaned the Path, reinstalled MSYS2,
and now F9 works very well.
This was probably necessary and useful.
Posted by: arjan | Date: 2023-10-23 14:49 | IP: IP Logged
Sounds like you are constructing an IDE with the old Borland look and feel. I have a huge appreciation for Turbo Pascal, so I am interested if my suspicion is right and if affirmative how far you've got.
Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR