File extensions with the C preprocessor (cc command)

Hello,

I'm trying to precompile a file using the preprocessor, but the [b]cc[/b] command always returns the error [code]cc: No input file specified, no output generated[/code].

The command line is :

[code]/opt/SUNWspro/bin/cc -P my_file.ext[/code]

The problem is that the name [b]my_file.ext[/b] is not recognized because of the [b].ext[/b] extension, and [b]cc[/b] accepts only [b].c[/b] files.

Does anybody know if there's an option for the [b]cc[/b] command that allows the use of different file extensions ?

Thank you for your help !

[582 byte] By [Galinoo] at [2007-11-26 8:23:54]
# 1
There is no option to add extensions to those recognized by the C compiler.
clamage45 at 2007-7-6 21:34:21 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
correction!!!.ext to .c
AAKIX at 2007-7-6 21:34:21 > top of Java-index,Development Tools,Solaris and Linux Development Tools...