[TRNSYS-users] new component in C++

Technical Support TechSupport at tess-inc.com
Fri Apr 4 09:48:06 PDT 2008


Wouter,

> Create new component in the simulation studio.
> Already here there is something that i'm uncertain about in the proforma:
> Under the tab "files": what do i have fill in for "compiling command"?
> Do i have to put a path there to my c++ compiler?

no, you don't have to put anything there. That field is there if you want
to be able to execute a compile/link command from within the Studio. If
you are comfortable using your compiler interface, there is no need for
the Studio link.

> Then, when i have written my component and i try to compile i get the
> following  type of errors:
>
> "[linker error] undefined reference to '_imp_TYPECK'"
>
> "[linker error] undefined reference to
> '_imp_TRNSYSFUNCTIONS_mp_GETSIMULATIONSTARTIME'"
>
> "[linker error] undefined reference to 'WinMain at 16'"

Please check the trnsys.h file (you can open it with a text editor) and
make sure that both the function GetSimulationStartTime and the subroutine
TYPECK are exported. With some of the early TRNSYS 16 releases, the
trnsys.h file was incomplete and did not have all of the subroutines and
functions exported.

Kind regards,
 David


Technical Support Team
Thermal Energy System Specialists, LLC
2916 Marketplace Dr, Suite 104
Madison, WI 53719
techsupport at tess-inc.com




More information about the TRNSYS-users mailing list