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

Compiler error while trying to run an object oriented program

Deleted_U_Intel
Employee
1,525 Views
I am trying to take my first object oriented program on a trial run. However, I keep getting the following compiler error. I have written my program in the following form: a module, main program and an external subroutine (attached at the end). When I try to compile the program which has an interface block included, I get the error cited below. Incidentally, if I don't use the block the program runs fine.
I have attached the program below. I am running this program on Digital Visual Fortran.
Any comments would be appreciated.
Thank you!
John
(1) Error: The type of the actual argument differs from the type of the dummy argument. [CITIZEN]
0 Kudos
1 Reply
tonyjay68
Beginner
1,525 Views

I tried to edit my message and somehow deleted It !

look in the CVF on-line help index for 'Defining Generic Assignment' for an example.

use a use statement in the interface not a redefinition of the derived type.

Tony

Message Edited by tonyjay68 on 02-24-2004 04:17 AM

0 Kudos
Reply