Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions G++/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

To build GregsBestFriend with g++, follow these steps:

### On Linux

1. `apt install mingw-w64 g++`
2. Run the following command to build the executable with g++ and mingw:
`x86_64-w64-mingw32-g++ -Os -s GregsBestFriend.cpp -static -static-libgcc -static-libstdc++ -Wl,--subsystem,windows -o GregsBestFriend.exe`

### On other platforms

1. Download and install [mingw-w64](https://github.com/niXman/mingw-builds-binaries) for your system.
2. Open the mingw-w64 terminal or command prompt.
3. Navigate to the `g++` folder in the GregsBestFriend repository.
Expand Down