Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
1

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

asked 8 years ago

amirrezaheydari's avatar

updated 8 years ago

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

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
1

answered 8 years ago

Ricardo GAllegos's avatar

updated 8 years ago

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.

Preview: (hide)
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  ( 8 years ago )
0

answered 8 years ago

azua's avatar

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

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

Stats

Asked: 8 years ago

Seen: 629 times

Last updated: Nov 03 '16