[TRNSYS-users] Help in compiling with TRNSY16

Gottwald Dieter Dieter.Gottwald at arsenal.ac.at
Wed Dec 20 05:15:08 PST 2006


What compiler do you use? How did you compile it? What are the compile/link options? You need to have the line 

!dec$attributes dllexport :: type<n>

in your code.

I had the same problem as you when making my first type ;) After flipping the right compiler switches it worked.

Dieter

> -----Ursprüngliche Nachricht-----
> Von: trnsys-users-bounces at engr.wisc.edu [mailto:trnsys-users-
> bounces at engr.wisc.edu] Im Auftrag von Marco Sangiorgi
> Gesendet: Mittwoch, 20. Dezember 2006 13:17
> An: trnsys-users-bounces at engr.wisc.edu; trnsys-users at engr.wisc.edu
> Betreff: [TRNSYS-users] Help in compiling with TRNSY16
> 
> Hello to eveybody,
> 
> I'm a brand new user of TRNSYS 16. I was trying to create my type
> following
> the procedure in the Programmer's Guide, § 8.4.10 "Instructions to add a
> new
> project to the CVF66 workspace".
> 
> I succeeded in creating my dll, TYPE 310 in Rendemix.dll, which I copied
> into the folder \Trnsys16\UserLib\ReleaseDLLs  but when I run the dck file
> I
> get the following errors:
> 
> *** Notice at time        :         0.000000
>     Generated by Unit     : Not applicable or not available
>     Generated by Type     : Not applicable or not available
>     Message               : "Rendemix.dll" was found but did not contain
> any
> components from the input file.
> 
> *** Notice at time        :         0.000000
>     Generated by Unit     : Not applicable or not available
>     Generated by Type     : Not applicable or not available
>     TRNSYS Message    199 : TRNSYS found at least one user DLL in the
> UserLib directory. (Note: Only DLL's including Types that are used in the
> simulation are loaded)
>     Reported information  : 0 user DLLs were loaded after searching in
> "F:\Trnsys16\UserLib\ReleaseDLLs"
> 
> 
> *** Fatal Error at time   :        47.750000
>     Generated by Unit     :    27
>     Generated by Type     :   310
>     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  : Not available
> 
> 
> What's wrong? Can anybody please help me?
> 
> Thanks,
> 
> Marco
> 
> 
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at engr.wisc.edu
> https://www.cae.wisc.edu/mailman/listinfo/trnsys-users




More information about the TRNSYS-users mailing list