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

Re: [TRNSYS-users] new component in C++



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@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@tess-inc.com