I do a LOT of programming in my C++ class, and I have about 60 .cpp, .o, and .exe files all piled together in one folder. Is there any way that I can tell the compiler to save the executable file to a different directory? Like add a value --output C:/C++/Executables/ instead of C:/C++/?
Thanks in advance! Gage Henry
PS: G++ Compiler, Running Code::Blocks
相应的编译器选项是-o
To set it up in Code::Blocks
Properties...
Menu item Build targets
tab Add a build target
5.1. Click on the Add
button 5.2. Enter a name for your build target
Select your Build target
in the left column.
Execution working directory
text box Objects output dir:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.