Quick Reference - Using the command line


Building from the command line interface

Open up Cygwin64 Terminal. You will need to navigate to your code folder usign navigation commands.

(You may want to move your cs200 repository folder into your cygwin64 folder for easy access.)

  • cd FOLDER will take you to another folder.
  • ls will show you a list of all folders and files in your current directory

Navigate to where you have source files located.

 

Use this command to build all source files:

g++ *.hpp *.cpp
Or, if you only have cpp files:
g++ *.cpp

 

Once it has built, an executable file will be generated (a.exe by default).

 

Run the program with

./a.exe