Skip to content

LeMoonStar/AoC20

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AoC20

About Days completed Stars Language: C++ License: MIT

LeMoonStar's Advent of Code 2020 solutions

Building and compiling

Linux (Unix Makefiles)

Requirements

Building

  • Open a new Terminal
  • Navigate to the directory you want the AoC20 project placed
  • Type (or copy and paste)
    git clone https://github.com/LeMoonStar/AoC20
    cd AoC20
    mkdir build && cd build
    cmake .. -G "Unix Makefiles"
    this will clone the project and create all required makefiles.
  • Type (or copy and paste)
    make
    to compile and link the executable.
  • Type (or copy and paste)
    cd ../bin
    to move to the folder the Executable is placed in.
  • To then execute the executable type ./AoC20, if everything worked correctly you should now be able to use it.

Windows (MinGW)

Required programs

  • git
  • CMake's binary distribution. Select the radio button that says "Add CMake to the system PATH" either for all users or for the current user or add it to PATH if you have already installed it
  • MinGW. Add the bin folder (Default: C:\MinGW\bin) to PATH and open the MinGW Installation Manager. Install mingw32-base-bin and mingw32-gcc-g++-bin by right clicking on the entries and selecting "Mark for Installation". Afterwards, click on Installation (Alt + I) and Apply Changes (A). Wait for the downloads to be finished

Building

  • Open a new Terminal (cmd, not PowerShell) by typing in cmd in the Windows search or pressing Windows + R, typing in cmd and pressing enter
  • Navigate to a directory of your choice where you want to download the source code by typing in cd path where path can be choosen freely (example: cd C:\USERNAME\Documents) and press enter afterwards. (Sidenote: If the directory is not on your main drive (By default: C:), you have to type in the drive letter followed by a colon (Example: D:) and enter)
  • Type (or copy and paste)
    git clone https://github.com/LeMoonStar/AoC20
    cd AoC20
    mkdir build
    cd build
    cmake .. -G "MinGW Makefiles"
    and press enter
  • Type (or copy and paste)
    mingw32-make
    and press enter
  • Type (or copy and paste)
    cd ../bin
    followed by enter
  • Enter AoC2020.exe to start the program

Check out the AoC2020 solutions of some other people

About

my Advent of Code 2020 solutions using C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published