I'm working through a Linux programming book, however the first half is all on shell scripting, the latter half is on gcc/g++ and make files. I glanced at the gcc part and learned that I can do a simple compile like so:
gcc -o newname filename.cpp
Well, I want to read this book sequentially, however can someone quickly help me out and tell me what the command line option is for building a project with multiple files: Say I have these files:
Set.h
Pet.h
source1.c
source2.c
How would I compile this with gcc. I glanced at the chapter on make files. I don't want to get into that just yet. What is the long solution?
gcc ?
Yes I am lazy. I didn't even try to anything. Just give me the answer anyway!