intrgb() function

8 views
Skip to first unread message

Stefano Antoniazzi

unread,
Jul 3, 2023, 8:56:38 AM7/3/23
to dislin-users
Why calls to intrgb() with gfortran generate the following error message ?

Error: Function 'intrgb'  has no IMPLICIT type|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 2 second(s)) ===|


I'm using:
    use dislin
at the beginning of a program.

Adding the interface directly inside my program solves the issue but it's not clear why:

interface
      function intrgb(xr,xg,xb)
      implicit none
      real, intent (in) :: xr,xg,xb
      integer :: intrgb
    end function intrgb
end interface



Helmut Michels

unread,
Jul 4, 2023, 3:14:00 PM7/4/23
to dislin-users
Hi,

you need the 'use dislin' statement in every program unit. where you are calling Dislin functions
or subroutines.

With best regards,

Helmut
Reply all
Reply to author
Forward
0 new messages