Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29276 Discussions

error #7938: Character length argument mismatch.

davidgraham
Beginner
2,763 Views
I am getting the following error - error #7938: Character length argument mismatch. [' ']

The subroutine interface is:

subroutine Info (row,col,Mess,len)

integer*4 row,col,len
character*(*) Mess

end subroutine

The call to the routine is:

call Info (0,1,' ',1)

if I change it to :
character c80*80
c80=' '
call Info (0,1,c80,1)

It works, but is there a better way?

Thanks,
David

0 Kudos
3 Replies
Steven_L_Intel1
Employee
2,763 Views
Does the error go away if you do a Build > Rebuild? I suspect you have a leftover generated interface module that doesn't reflect the change you made to Info. Or compile Info's source first, manually, then do a Build.
0 Kudos
davidgraham
Beginner
2,763 Views
Steve,
The errors went away when I deleted all the files in the debug directory and then did a build.
But I find every time I do a build I get one or two of these types of errors - it says Build Successful but then I get some more, it's not a major problem but I would like to get rid of all the errors.
David
0 Kudos
Steven_L_Intel1
Employee
2,763 Views
Depending on the build order,some of these errors won't be revealed until a subsequent build. I suggest doing a rebuild when you change the declarations of routine arguments.
0 Kudos
Reply