PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Preprocessing from standard input?

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
Matt



Joined: 07 Dec 2004
Posts: 3

PostPosted: Fri Jan 14, 2005 8:42 am    Post subject: Preprocessing from standard input? Reply with quote

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
View user's profile
Matt



Joined: 07 Dec 2004
Posts: 3

PostPosted: Fri Jan 14, 2005 8:55 am    Post subject: Reply with quote

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
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5815
Location: The Portland Group Inc.

PostPosted: Mon Jan 17, 2005 8:45 am    Post subject: Reply with quote

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
View user's profile
Matt



Joined: 07 Dec 2004
Posts: 3

PostPosted: Tue Jan 18, 2005 12:37 pm    Post subject: Reply with quote

Thanks!

-Matt
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group