1

create dll file from fortran code exported from TRNSYS to create a new type

It's about 4 weeks that I'm trying to export dll file from a fortran code which is exported from TRNSYS to create a new component:

1>C:\Users\amirreza\Desktop\type204.for(34): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [TRNSYSCONSTANTS]
1>C:\Users\amirreza\Desktop\type204.for(35): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [TRNSYSFUNCTIONS]
1>C:\Users\amirreza\Desktop\type204.for(153): error #6404: This name does not have a type, and must have an explicit type.   [GETSIMULATIONSTARTTIME]
1>C:\Users\amirreza\Desktop\type204.for(154): error #6404: This name does not have a type, and must have an explicit type.   [GETSIMULATIONTIMESTEP]
1>compilation aborted for C:\Users\amirreza\Desktop\type204.for (code 1)

Would you be so kind to tell me how to fix this errors? I'm a beginner in FORTRAN so please guide me as a beginner

amirrezaheydari's avatar
673
amirrezaheydari
asked 2016-11-03 01:41:43 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2016-11-12 14:57:37 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

1

There are few vesions of FORTAN compilers that can be useful. For reasons unknown to me, many fortran compilers won' t work. I have used compaq visual fortran (CVF) and worked fine for me. Unfortunately, I think CVF is not longer distributed. Try to find a computer that has CVF to compile your component.

Ricardo GAllegos's avatar
274
Ricardo GAllegos
answered 2016-11-03 14:56:39 -0500, updated 2016-11-03 17:39:53 -0500
edit flag offensive 0 remove flag delete link

Comments

Thank you for your comment but as you said CVF is no longer distributed and it isn't compatible for windows 7 . My thought is that the errors could be easily solved by editing the properties of dynamic link library but I din't know how I should do it

amirrezaheydari's avatar amirrezaheydari (2016-11-04 00:42:57 -0500) edit
add a comment see more comments
0

I am having the same problem, did you finally solve it?

azua's avatar
1
azua
answered 2017-01-09 04:38:56 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments