fortran77 - fortran 77 conflicting types in external -


i'm working f77 code, , encountering problem in compilation. think i've narrowed down problem don't know straight forward way of fixing it.

the code extremely long i'll try clear possible little snippets use.

the error following:

/tmp/fort77-4812-1.c:2728:12: error: conflicting types ‘func_’ doublereal func_(doublereal *e)  /tmp/fort77-4812-1.c:272:43:  

note: previous declaration of ‘func1_’ here

extern /* subroutine */ int func1_(), func2_();                                        ^ 

where func(n) function. happens both func1 , func2 , both have same format, differ in arithmetic.

the code starts this:

implicit double precision(a-h,o-z) ... //initialization of arrays & parameters ... external func1,func2 ... ... ...  function func1(n) implicit double precision(a-h,o-z) ... ... end 

i think external trying keep function int defined realdouble because of implicit double.

any thoughts?

this looks error caused choice of compiler, assuming f2c, language translator. problem translation not handling external attribute declaration , producing c language variable declaration not respecting implicit typing rules (which appears bug cannot reproduce f2c version 20060506).

i recommend using proper fortran compiler instead of f2c.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -