to JUST compile (not link/load/create executable)
a file blah.cpp
on cs-server:
g++ -c blah.cpp
to compile/link/load/create executable on cs-server for a program
whose main function is in myprog.cpp, which calls function
fun1 in fun1.cpp, which calls function fun2 in fun2.cpp:
g++ -o myprog myprog.o fun1.o fun2.o
or
g++ myprog.o fun1.o fun2.o -o myprog
or
g++ -o myprog myprog.cpp fun1.cpp fun2.cpp
or
g++ myprog.cpp fun1.cpp fun2.cpp -o myprog