file extension case sensitive

Peter Gerwinski peter at
Wed Aug 22 09:39:13 CEST 2012

Jay Michael wrote:
>      The automatic selection of source language based on the extension
> of an input file seems to be case-sensitive.

That's intentional. For example, the suffix ".C" means "C++ source",
while ".c" means "C source".

Use "-x pascal" to make gpc recognize Pascal source without looking
at the extension.

> gpc JSM4.PAS
> gpc: Internal GPC problem: internal option `--amtmpfile' not given

The error message is misleading, of course.

Prof. Dr. rer. nat. Peter Gerwinski -
Bochum University of Applied Sciences -
G-N-U GmbH - First Class IT Services -
German pages for GNU & free software -

More information about the Gpc mailing list