SPRUIG8J January 2018 – March 2024
You can use options to change how the compiler interprets your filenames. If the extensions that you use are different from those recognized by the compiler, you can use the filename options to specify the type of file. You can insert an optional space between the option and the filename. Select the appropriate option for the type of file you want to specify:
--asm_file=filename | for an assembly language source file |
--c_file=filename | for a C source file |
--cpp_file=filename | for a C++ source file |
--obj_file=filename | for an object file |
For example, if you have a C source file called file.s and a C++ file called objects.cp, use the --cpp_file and --c_file options to force the correct interpretation:
cl7x --c_file=file.s --cpp_file=objects.cp
You cannot use the filename options with wildcard specifications.
The default file extensions for object files created by the compiler have been changed in order to prevent conflicts when C and C++ files have the same names. Object files generated from C source files have the .c.obj extension. Object files generated from C++ source files have the .cpp.obj extension.