An open API service indexing awesome lists of open source software.

https://github.com/connorsweeneydev/cpptemplate

An easily modifiable template for C++ projects that compiles using the MinGW toolchain on Windows and natively on Linux.
https://github.com/connorsweeneydev/cpptemplate

cpp makefile mingw template-project

Last synced: 12 months ago
JSON representation

An easily modifiable template for C++ projects that compiles using the MinGW toolchain on Windows and natively on Linux.

Awesome Lists containing this project

README

          

# Building and Executing
This project is optimized to be built with the following targets in mind:
- Windows 11 MinGW 64-bit GCC 14.2.0
- Ubuntu 18.04 GLIBC Version 2.27

Version information for dependencies can be found in `external/version_info.txt`.

By default, the executables are statically linked, although requirements for linking vary by project.

After following the platform specific instructions below you can execute `script/build.sh` followed by `script/run.sh`
from the root of the project to build and run the project.

### Windows
Do the following to ensure your environment is set up correctly:
- Download a 64-bit [MinGW](https://winlibs.com/) distribution with Clang/LLVM support and put the `[DISTRIBUTION]/bin`
directory in your path.
- Install GNUMake by running `winget install ezwinports.make`.
- Ensure that you have `[GIT_INSTALLATION]/bin` in your path.

### Linux
Do the following on Ubuntu to ensure your environment is set up correctly:
- Only run `sudo apt update && sudo apt upgrade` if you haven't already.
- Run `sudo apt install git g++ gdb make`.