CS 1440 Lab 1

Cover sheetPrevious ActivityNext Activity

Activity 1-4: Compiling a C++ program

Activity Goals

Activity Procedure

The Unix application on cs that we use to compile C++ programs is called "g++". When using the g++ application, you should use the -Wall flag to instruct g++ to display all warnings. You must also tell it what C++ program you want compiled. The executable program created by the compiler is named "a.out" by default.  Let's try it.

That's it!  Make sure to demo running your executable program to your instructor.

Now let's see what g++ does if there is an error in the C++ program file.

Activity Followup

Fix your hello.C file so that it is correct again.  Compile it again and make sure it works by running your a.out application.