[TRNSYS-users] My could not be located in either the trndll.dll or in an external dll.could not be located in either the trndll.dll or in an external dll.
David BRADLEY via TRNSYS-users
trnsys-users at lists.onebuilding.org
Tue Mar 21 07:05:01 PDT 2017
Javier,
It sounds as though you followed all of the steps correctly. I would
recommend that you send your Type291 to your distributor for some
assistance. It may be something that is incorrect in the code or it may
be a compiling/linking problem.
As a side note, if you are writing a new Type and adding the code to
the MyType project then you do not need to rebuild the TRNDll project;
you can just rebuild the MyType project.
kind regards,
David
On 03/20/2017 11:15, Javier Vega via TRNSYS-users wrote:
> Hello TRNSYS community,
>
> Since I've had some problems compiling my own trnsys component, I
> tried to follow the "Getting Started" instructions and do the example
> of the self made type (yes, I probably should have done that from the
> beggining...). But I'm having some problems again.
>
> I followed all the steps, except for the compiling part. I don't have
> Compaq Visual Fortran 6.6,but instead I have Microsoft Visual Studio
> 2015 and Intel Fortran Compiler 17.
>
> So, I created the component in the Studio, saved the proforma with the
> parameter "Mult", the two inputs...etc. And then I exported to fortran.
>
> Then, I opened the MVS 2015 and followed the instructions of the
> "Programmers Guide", opening the sample IVF 11x and working from
> there. I rebuilt the TRNDLL in Release mode. Then, I added my type,
> Type 291, to the MyType folder, copied and pasted the FORTRAN
> squeleton that was made by the TRNSYS Studio. I finished the code
> adding the output calculation. Then I clicked on built.
>
> The "Mytype.dll" was created in UserLib/ReleaseDLL's. So, I opened the
> TRNSYS studio, made the same project that is indicated in "Getting
> started" and ran the simulation.
>
> I get the following error:
>
> *Fatal Error at time : 0.000000*
> * Generated by Unit : Not applicable or not available*
> * Generated by Type : 291*
> * TRNSYS Message 105 : A TYPE was called in the TRNSYS input
> file but was either not linked into trndll.dll or was not found in an
> external dll. A dummy subroutine was called in its place. Please link
> the TYPE or remove it from the input file*
> * Reported information : Type291 could not be located in either
> the trndll.dll or in an external dll. Please relink theTRNDll.dll
> including this Type or make sure that an external DLL in the
> \UserLib\DebugDLLs and \UserLib\ReleaseDLLs folders contain the Type.*
> *
> *
> What did I wrong?
>
> Thanks in advance, kind regards
> Javier Vega Benavente
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> Libre de virus. www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>
>
>
>
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at lists.onebuilding.org
> http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org
--
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
22 North Carroll Street - suite 370
Madison, WI 53703 USA
P:+1.608.274.2577
F:+1.608.278.1475
d.bradley at tess-inc.com
http://www.tess-inc.com
http://www.trnsys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20170321/b454980c/attachment-0003.htm>
More information about the TRNSYS-users
mailing list