ITEM: H3465L

Flag to force a program to compile as C++ instead of C




Question:

Level: 3.2.5
Model: 590

Customer has source code named with a .c(lower case) extension and
therefore the compiler will only compile it as a C program. He needs a
flag to force the compiler to compile the programs as C++ programs
despite the lower case extension on the file name.

Response:

Provided customer with the following information from InfoExplorer:

- +

Compiles any file, filename.nnn, where .nnn is any suffix other than
.o, .a, or .s specified after the - +. If you do not use the - +
option, the file must have the suffix .C (uppercase C).  If you
compile a file with suffix .c (lowercase c) without specifying - +,
the  xlc  compiler is invoked.  If you use - + to compile files with
suffixes other than .C, do not use the - g option to generate
debugging information for dbx. Unpredictable results may occur if you
use the - g option with files that do not have a .C suffix.



Support Line: Flag to force a program to compile as C++ instead of C ITEM: H3465L
Dated: March 1994 Category: N/A
This HTML file was generated 99/06/24~13:30:47
Comments or suggestions? Contact us