Windows: Copy and paste the executable into the path:
C:\Windows\System32(Global)
autoBuildC is a simple helper for Windows and Linux (Ubuntu) that uses g++ or gcc (GNU). This application, nicknamed cbuild, helps you quickly compile all .c or .cpp files in the current or selected directory. It scans project folders and subfolders for files with the selected extensions.
- Recursively scans for all
.cor.cppsource files. - Automatically compiles the sources using the appropriate compiler.
- Allows you to specify the output executable name.
- Visual mode prints all detected file paths before compiling.
- Supports both C and C++ source file filters.
- Instantly run your compiled program if the build succeeds.
- Easy shortcut to apply maximum performance optimization flags.
cbuild [options]-
-path <dirname>Enter your project path. Default is wherecmd was started. -
-flags <multi-flags>To use with other flags in your project.. -
-gccFilters and compiles only.cfiles using gcc.Default option. -
-g++Filters and compiles only.cppfiles using g++. -
-logsEnables visual mode, which prints out the full paths of all detected source files before compiling. -
-name <filename>Sets the output executable name. Default ismain.exe. -
-runExecutes the program automatically after a successful build. -
-fastApplies-O3 and -march=nativeflags for maximum execution performance.
Compile all .c files with gcc and show the file paths:
cbuild -gcc -logsCompile in static mode all .cpp files with g++ and name the output myApp.exe:
cbuild -g++ -flags "-static" -name myApp.exeCompile for high performance, show the logs, and run immediately after building:
cbuild -g++ -fast -logs -run-
This tool was initially created for Windows, but it is now compatible with Linux systems.
-
Make sure that
gccorg++is available in your system's PATH.
This project is open source and free to use.
