How do I change MinGW's compiled exe location while using gpp-compiler in the Atom IDE?

时光怂恿深爱的人放手 提交于 2019-12-13 09:52:35

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!