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

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

asked 2016-11-03 01:41:43 -0500

amirrezaheydari gravatar image

updated 2016-11-12 14:57:37 -0500

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

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2016-11-03 14:56:39 -0500

Ricardo GAllegos gravatar image

updated 2016-11-03 17:39:53 -0500

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.

edit flag offensive delete link more

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 gravatar image amirrezaheydari  ( 2016-11-04 00:42:57 -0500 )edit
0

answered 2017-01-09 04:38:56 -0500

azua gravatar image

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

edit flag offensive delete link more

Your Answer

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

Add Answer

 

Question Tools

Stats

Asked: 2016-11-03 01:41:43 -0500

Seen: 466 times

Last updated: Nov 03 '16