#105 closed defect (fixed)
WHIZARD 2 external library does not compile with gfortran 4.5.0
Reported by: | Juergen Reuter | Owned by: | kilian |
---|---|---|---|
Priority: | P1 | Milestone: | |
Component: | models | Version: | 2.0.0beta |
Severity: | blocker | Keywords: | Fortran compilation problem |
Cc: |
Description
This fails with the following error message:
make[2]: Entering directory `/localscratch/reuter/whizard2.0/trunk/src/models' /bin/sh ../../libtool --mode=compile gfortran45.old -I../../src/misc -I../../src/whizard-core -g -O2 -c -o external.Test.lo external.Test.f90 libtool: compile: gfortran45.old -I../../src/misc -I../../src/whizard-core -g -O2 -c external.Test.f90 -fPIC -o .libs/external.Test.o external.Test.f90:32.2: par(3) = mf 1 Error: Cannot assign to INTENT(IN) variable 'par' at (1) make[2]: *** [external.Test.lo] Error 1
Is there something missing, or a compiler error of gfortran???
The problem us the assignment:
{{{subroutine init_external_parameters (par) bind (C)
THIS ASSIGNMENT IS OK!