问题
MinGW normally when used through the command line spits out the compiled exe of the program in the current working directory, but when used through the gpp-compiler package by kriscross07 in Atom, the exe ends up in a temp folder. I would like it to place the exe in the folder of the source files the same way MinGW would normally. This is both so I can find it easier and so that my antivirus doesn't have a heart attack every time it sees me run an exe from the temp folder.
I'm using the release version of Atom with the version of MinGW you can get through the MinGW installer at https://sourceforge.net/projects/mingw/files/.
回答1:
Go to Settings of Atom under File>Settings or pressing Ctrl+,(comma). In Settings tab click on packages, under Community packages Click on Settings button of gpp-compiler, Under setting you will find ‘Compile to Temporary Directory’, Uncheck it and you are done.
来源:https://stackoverflow.com/questions/46866446/how-do-i-change-mingws-compiled-exe-location-while-using-gpp-compiler-in-the-at