Thanks for the information
I have setup the paths to the module and include files correctly, and added the winter.lib file as a reference in the Plato project. Compile makes the resid.mod file but says it cannot find it, even though it was compiled.
Cleaning...
Clean completed.
Compiling file default.f90 using FTN95.
C:\Fortran\wint_test\default.F90(10) : error 404 - Cannot find definition for MODULE RESID
Compilation failed.
Compiling file resid.f90 using FTN95.
Compiling as 32-bit
Source files default.f90, resid.f90 (module)
I'm assuming the winter.lib file is the equivalent to a dll reference. I have used DISLIN in the same way and have not had any issues. Is there a specific setup for Winteracter in a Plato project?
Lester
! ********************************
! * WiDE skeleton project source *
! ********************************
!
PROGRAM UNTITLED
!
! Use of the WINTERACTER module is compulsory
!
USE WINTERACTER
USE RESID
!
! Declare variables to be returned by WMessage
!
INTEGER :: ITYPE
TYPE(WIN_MESSAGE) :: MESSAGE
!
! Initialise Winteracter
!
CALL WInitialise()
!
! Open the root window with a status bar and menu
!
CALL WindowOpen(FLAGS =SysMenuOn+MinButton+MaxButton+StatusBar, &
MENUID=IDM_MENU1, &
TITLE ='Winteracter Application')
!
! Main message loop
!
DO ! Loop until user terminates
CALL WMessage(ITYPE,MESSAGE)
SELECT CASE (ITYPE)
CASE (MenuSelect) ! Menu item selected
SELECT CASE (MESSAGE%VALUE1)
CASE (ID_EXIT) ! Exit program (menu option)
EXIT
END SELECT
CASE (CloseRequest) ! Close window (e.g. Alt/F4)
EXIT
END SELECT
END DO
CALL WindowClose() ! Remove program window
STOP
END PROGRAM UNTITLED
! Winteracter resource identifiers.
!
! This file is generated by the Winteracter resource editor.
! It should not be edited manually. It is also not advisable to load this
! file in a text editor, while working on the associated resource file,
! since this may prevent the resource identifiers file from being updated.
! To view the names and values of resource identifiers, use the
! 'Identifier Names and Values' or 'Used Identifiers' options on the
! resource editor's 'View' menu. Both dialogs also include a 'Copy id'
! button which allows identifier names to be copied via the clipboard.
! Opening this file in an editor should therefore not be necessary.
!
MODULE RESID
IMPLICIT NONE
INTEGER, PARAMETER :: IDM_MENU1 = 30001
INTEGER, PARAMETER :: ID_EXIT = 40001
END MODULE RESID
Tested the Winteracter Development Environment using ftn95 32-bit and it compiled and linked fine.