PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

cannot find -lgpc when use pgf90?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
mkcolg



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

PostPosted: Fri Sep 01, 2006 8:43 am    Post subject: Reply with quote

Geez.. can't a guy use slightly older syntax? ;-)

Actually, the program I used is a perfectly valid Fortran 95 program. Programs ending with a ".f" indicate fixed form format and requires six characters before each statement (as I did in my example). My mistake was forgetting that a user would simply cut and paste from the post which removes the spaces. Next time, I'll use a ".f90" extension or compile with "-Mfree" which indicate free form.

- Mat
Back to top
View user's profile
Christopher Hulbert



Joined: 01 Dec 2005
Posts: 76

PostPosted: Fri Sep 01, 2006 10:01 am    Post subject: Reply with quote

My post was worse; I posted the freeform and compiled the fixed ;-). I'm not a fortran expert, so I guess I didn't realize that you did not have to start a program with a PROGRAM statement.
Back to top
View user's profile
mkcolg



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

PostPosted: Fri Sep 01, 2006 12:26 pm    Post subject: Reply with quote

While the program statement is optional, it is recommended. For toy programs I tend to be a bit lazy and leave it out. Please continue to use PROGRAM and ignore my bad habits!
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
Goto page Previous  1, 2
Page 2 of 2

 
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