Compiling a Single C or C++ File

See Also 

To compile a single source file, do one of the following:

See also
C and C++ Building Tasks: Quick Reference
Building a C or C++ Project

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.