F90 errors using namelist and modules 
Author Message
 F90 errors using namelist and modules

I am having a problem with the following simple fortran 90 code. The
combination of the following module and subroutine produce the compiler
errors which are listed below. I am running the NAG f90 compiler on an SGI
running Irix 4.0.5. Any help would be appreciated.

module vars
  implicit none
  integer method,imax,jmax
end module vars

subroutine test
  use vars
  implicit none
  namelist /list/ method,imax,jmax
end subroutine test

accom: Error: test.f90, line 3: vars_MP_methodVD undefined
static Vardesc *test_MP_listVL[] =
{&vars_MP_methodVD,&vars_MP_imaxVD,&vars_MP_jmaxVD,};
-----------------------------------------------------^
accom: Error: test.f90, line 3: Illegal pointer combination:   pointer
to struct  versus   pointer to int
static Vardesc *test_MP_listVL[] =
{&vars_MP_methodVD,&vars_MP_imaxVD,&vars_MP_jmaxVD,};
-----------------------------------------------------^
accom: Error: test.f90, line 3: vars_MP_imaxVD undefined
static Vardesc *test_MP_listVL[] =
{&vars_MP_methodVD,&vars_MP_imaxVD,&vars_MP_jmaxVD,};
---------------------------------------------------------------------^
accom: Error: test.f90, line 3: Illegal pointer combination:   pointer
to struct  versus   pointer to int
static Vardesc *test_MP_listVL[] =
{&vars_MP_methodVD,&vars_MP_imaxVD,&vars_MP_jmaxVD,};
---------------------------------------------------------------------^
accom: Error: test.f90, line 3: vars_MP_jmaxVD undefined
static Vardesc *test_MP_listVL[] =
{&vars_MP_methodVD,&vars_MP_imaxVD,&vars_MP_jmaxVD,};
-------------------------------------------------------------------------------------^
accom: Error: test.f90, line 3: Illegal pointer combination:   pointer
to struct  versus   pointer to int
static Vardesc *test_MP_listVL[] =
{&vars_MP_methodVD,&vars_MP_imaxVD,&vars_MP_jmaxVD,};
-------------------------------------------------------------------------------------^

Stephen J. Schraml, Mechanical Engineer
US Army Research Laboratory
AMSRL-WT-NC
Aberdeen Proving Ground, MD  21005-5066

Phone : (410) 278-6039
--
Stephen J. Schraml, Mechanical Engineer
US Army Research Laboratory
AMSRL-WT-NC
Aberdeen Proving Ground, MD  21005-5066



Fri, 22 Aug 1997 22:22:53 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Error while compiling using CHARACTER*(*) attribute in a NAMELIST

2. using modules in f90 to specify precision

3. using procedure interfaces in f90 modules

4. Sun F90 Compiler problem with namelist read

5. Howto selectively read namelists in f90 ?

6. F77,F90 Namelist input of logical variables

7. Namelist I/O in MIPSPro 7.2 f90

8. Strings in namelists? (f90/f77)

9. Strange behavior using a module which uses another module

10. Using .f files with .f90 codes: Symbol Referencing error

11. f90: module within module

12. f90:module within module (revisited)

 

 
Powered by phpBB® Forum Software