[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TRNSYS-users] Error linking new component




Solved! 
It was in the code, I had a return statement without returning the value 1.
I corrected this and now is working.
I am new using TRNsys and fortran language so I don't now if this was suppose to be an issue for this error, but it was my experience :)
Thanks!


2017-01-15 22:43 GMT+02:00 Amaia Zuazua <amaiazuazua@gmail.com>:

Yes, I did everything you say.

2017-01-15 21:12 GMT+02:00 Jeff Thornton <thornton@tess-inc.com>:

A few things to check:

Did you replace the XXX with the actual number for your new type? 

Does the Subroutine declaration at the top of your subroutine have the same number as the DLLexport command?

Did you build your new DLL in release mode?

 

Jeff

 

---
Jeff Thornton President - TESS LLC 22 N. Carroll Street, Madison WI USA 53703 Office: (608) 274-2577 Fax: (608) 278-1475 www.tess-inc.com E-Mail: thornton@tess-inc.com

On 01/15/2017 11:56 am, Amaia Zuazua via TRNSYS-users wrote:


Hi all,

 

I did a new component but when I try to use it I get the following error:

 

“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”.

 

The .dll of the new type is in the ReleaseDLL folder, and I wrote !DEC$Attributes DLLexport :: TypeXXX in the code file (I saw those two issues where the most common mistakes regarding this error).

 

 

Any other help?

Thanks!


_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@lists.onebuilding.org
http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org