[TRNSYS-users] Error linking new component
Amaia Zuazua via TRNSYS-users
trnsys-users at lists.onebuilding.org
Mon Jan 16 02:21:59 PST 2017
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 at gmail.com>:
>
> Yes, I did everything you say.
>
> 2017-01-15 21:12 GMT+02:00 Jeff Thornton <thornton at 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-1475www.tess-inc.com
>> E-Mail: thornton at 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 listTRNSYS-users at lists.onebuilding.orghttp://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20170116/55297009/attachment-0001.htm>
More information about the TRNSYS-users
mailing list