Home Segments Index Top Previous Next

690: Mainline

Once you have object files ready, you can link them into an executable program file with another command to the C++ compiler. In the following, the -o option instructs the C++ compiler to name the executable file analyze_train:

CC -o analyze_train trains.o containers.o cars.o