Hello DaniWeb Software Developers :D

I have a problem which exceed my programing capabilities and i need your help!

Problem:

I am somewhat new to c++ and i have been making some useful console applications in windows
GUI visual Express. I thought i would give building in Linux a try using g++ through terminal so first i tried a single (.cpp) Hello World file and built it with success. Now i want to build a project that i wrote in windows. This program calculates the pass rating for NCAA Quarter Back's. It has 3 files 2(.cpp) files and 1(.h) file and i want to build all of these files as 1 project like you do in windows. But i can't figure out how to do it.!

--Thank you!

The invocation would look something like this:

$ g++ file1.cpp file2.cpp file3.cpp
$ ./a.out

The header files need not be compiled as the preprocessor textually inserts them into your .cpp files. The resulting executable file is named a.out by default, but you can alter that with the -o switch:

$ g++ -o myprog file1.cpp file2.cpp file3.cpp
$ ./myprog

Edited 5 Years Ago by Narue: n/a

This question has already been answered. Start a new discussion instead.