Language Switches
Go Up to Using gpre
The language switch specifies the language of the source program. C and C++ are languages available on all platforms. The switches are shown in the following table:
Switch | Language |
---|---|
-c |
C |
-cxx |
C++ |
In addition, some platforms support other languages if an additional InterBase license for the language is purchased. The following table lists the available languages and the corresponding switches:
Switch | Language |
---|---|
-al[sys] |
Ada (Alsys) |
-a[da] |
Ada (VERDIX, VMS, Telesoft) |
-ansi |
ANSI-85 COBOL |
-co[bol] |
COBOL |
-f[ortran] |
FORTRAN |
-pa[scal] |
Pascal |
For example, to preprocess a C program called census.e
, type:
gpre -c census.e