Hello John, thank you for your prompt reply. I tried your suggestion with only the Type201.f90 file loaded. But compiling interrupts with the following error: C:\Users\HofmannD\AppData\Local\Temp\cc482Y2Q.o:Type201.f90:(.rdata$.refptr.__trnsysdata_MOD_ontitl[.refptr.__trnsysdata_MOD_ontitl]+0x0): undefined reference to `__trnsysdata_MOD_ontitl' C:\Users\HofmannD\AppData\Local\Temp\cc482Y2Q.o:Type201.f90:(.rdata$.refptr.__trnsysdata_MOD_onlab[.refptr.__trnsysdata_MOD_onlab]+0x0): undefined reference to `__trnsysdata_MOD_onlab' C:\Users\HofmannD\AppData\Local\Temp\cc482Y2Q.o:Type201.f90:(.rdata$.refptr.__trnsysdata_MOD_plout[.refptr.__trnsysdata_MOD_plout]+0x0): undefined reference to `__trnsysdata_MOD_plout' C:\Users\HofmannD\AppData\Local\Temp\cc482Y2Q.o:Type201.f90:(.rdata$.refptr.__trnsysdata_MOD_prout[.refptr.__trnsysdata_MOD_prout]+0x0): undefined reference to `__trnsysdata_MOD_prout' Thats probably because the compiler searches the functions declared in the “Use-statements” at the beginning of my source code: Subroutine Type201
!export this subroutine for its use in external DLLs. !DEC$ATTRIBUTES DLLEXPORT :: TYPE201 !----------------------------------------------------------------------------------------------------------------------- Use TrnsysConstants Use TrnsysFunctions Use TrnsysData, Only:onlab,prout,plout,ontitl !----------------------------------------------------------------------------------------------------------------------- Here the code continues….. Deleting the part “Only:onlab,prout,plout,ontitl” doesn’t help, too.
Best regards Daniel Hofmann From: TRNSYS-users <trnsys-users-bounces@lists.onebuilding.org>
On Behalf Of John Dyreby via TRNSYS-users Hello, I’m not sure exactly what the problem is, but it’s not necessary or advised to open all the extra source files (TrnsysFunctions.f90, TrnsysData.f90, etc...) into Type Studio. That could be causing the problem. Please try again with only your Type201.f90 file loaded into a new Type Studio workspace and see if that fixes the problem. After a successful compilation you should see in the UserLib directory the newly created single Type201.dll file
that TRNSYS will load externally. If that doesn’t fix the problem, feel free to send me your custom Type source code (assuming it isn’t proprietary) and I can try to compile and load it on my computer to help sort out what is going wrong. Regards, John On Tue, Jan 15, 2019 at 6:17 AM, Hofmann, Daniel via TRNSYS-users <trnsys-users@lists.onebuilding.org> wrote:
|