Software Archive
Read-only legacy content
17061 Discussions

Warning: DEC$ ATTRIBUTES DLLIMPORT is ignored for non-external procedure

Intel_C_Intel
Employee
596 Views
We get the previous error when we upgraded from VF 6.5 to VF6.6. We have been using the same code since VF 6.0.B3 without this problem. A little background. We have a module that is part of a DLL. An application needs to use this module.

We define the module in the DLL project as follows...

MODULE tlm_raw_values

IMPLICIT NONE
...
INTERFACE OPERATOR (+)
MODULE PROCEDURE RV_PLUS_INT4,
+ RV_PLUS_RV
END INTERFACE
...
FUNCTION RV_PLUS_INT4 ( rv, i4 ) RESULT ( r )
TYPE (tlm_raw_value), INTENT (in) :: rv
INTEGER(4), INTENT (in) :: i4
TYPE (tlm_raw_value) r

!DEC$ ATTRIBUTES DEFAULT,DLLEXPORT :: RV_PLUS_INT4
...
END FUNCTION RV_PLUS_INT4
...
END MODULE tlm_raw_values

The function using this module within a separate application looks as such...

SUBROUTINE SDTINITBL ( ierr )
...
USE tlm_raw_values

IMPLICIT NONE
...
RETURN

END

No errors when compiling the DLL. We get the following error when compiling the EXE:

Warning: DEC$ ATTRIBUTES DLLIMPORT is ignored for non-external procedure. [RV_PLUS_INT4]

Any ideas? Is this a compiler bug?
0 Kudos
1 Reply
Steven_L_Intel1
Employee
596 Views
The message is a bug. I think the 6.6A update suppresses it.

Steve
0 Kudos
Reply