Preprocessing from standard input?

pgcc (5.2) fails when trying to compile something from standard input. If I type:


cat hello.c | pgcc -o hello -E -

it fails with


pgcc-Warning-Unknown switch: -
pgcc-Warning-No files to process


But the same command with gcc works fine.

-Matt

Of course I mean preprocess (with the -E option) and not “compile”.

One of our users has a perl script that generates output to be preprocessed and pgcc can’t handle the “-E -” command-line argument.

He’s outputting to a file, and using that, but I wanted to post here and see if anyone has any ideas.

I tried using the “-- -” insted of just the “-” but it didn’t help.


-Matt

Hi Matt,

I’ve passed along your suggestion to our engineers. They’re still working out the details of what needs to be done, but it sounds like they should be able add “-E -” to the driver. We’ve probably missed the upcoming 6.0 release but it should be available in the following release.

  • Mat

Thanks!

-Matt