| View previous topic :: View next topic |
| Author |
Message |
Matt
Joined: 07 Dec 2004 Posts: 3
|
Posted: Fri Jan 14, 2005 8:42 am Post subject: 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
Last edited by Matt on Fri Jan 14, 2005 8:55 am; edited 1 time in total |
|
| Back to top |
|
 |
Matt
Joined: 07 Dec 2004 Posts: 3
|
Posted: Fri Jan 14, 2005 8:55 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Mon Jan 17, 2005 8:45 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
Matt
Joined: 07 Dec 2004 Posts: 3
|
Posted: Tue Jan 18, 2005 12:37 pm Post subject: |
|
|
Thanks!
-Matt |
|
| Back to top |
|
 |
|