Laboratory Exercises, C++ Programming
Laboratory Exercises, C++ Programming
Laboratory Exercises, C++ Programming
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
10 The GNU Compiler Collection and <strong>C++</strong><br />
5 Final Remarks<br />
If a source file includes a header that is not in the current directory, the path to the directory<br />
containing the header can be given to the compiler using the -I option (similar to -L):<br />
g++ -c -Ipath file.cc<br />
To make GCC print all it is doing during compilation (what commands it is calling and a lot of<br />
other information), the option -v (for verbose) can be added to the command line.