PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

error S0021 : Label field of continuation line is not blank

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



Joined: 22 Mar 2012
Posts: 100

PostPosted: Fri Apr 27, 2012 6:06 pm    Post subject: error S0021 : Label field of continuation line is not blank Reply with quote

Hi,
when I try to compile this fortran code with PGI compiler x64 bit:

open(90, file='time.dat') <===starts at col 5, ln 878
close(90) <===starts at col 5, ln 879

I get these two errors:

D:\Cuda Dev\Quick_cuda\util.f(878) : error S0021 : Label field of continuation line is not blank
D:\Cuda Dev\Quick_cuda\util.f(879) : error S0021 : Label field of continuation line is not blank

why? what is the possible problem I am doing??

please advice.
Dolf
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Apr 30, 2012 11:18 am    Post subject: Reply with quote

Hi Dolf,

Quote:
starts at col 5, ln 878
Since you are using Fixed format, the statement needs to start at column 7.

Your other option is to use Free formant, in which case either change the file suffix to ".f90" or add the flag "-Mfree".

- Mat
Back to top
View user's profile
Dolf



Joined: 22 Mar 2012
Posts: 100

PostPosted: Mon Apr 30, 2012 12:27 pm    Post subject: Reply with quote

thanks Mat.
that was helpful note.

Dolf
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