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

Re: [TRNSYS-users] Drop-in dll, cannot call external functions



Ivy,
 I would guess that you need to add the file TRNDll.lib to your external DLL project. An "unresolved external" error means that the code was looking for something (usually a function or a subroutine) that it can't find. In this case, the definition of the function "getSimulationStartTime()" and the subroutine "TYPECK" are both contained in the TRNDll.lib file.
Kind regards,
 David


baitao444 wrote:
Hello!
 
I am sorry to bother you! I hope somebody can help me to solve the problem in TRNSYS Thanks in advance!
Since the release of TRNSYS 16 I linked my own types into the TRNDll.dll in legacy mode. Know I wanted to update the sources to TRNSYS 16 (using the acces functions, using double precision...) and wanted to link them into an user-dll. But during the linking process I get the error message

Linking...
   Creating library Release/BLSLib.lib and object Release/BLSLib.exp
type112.obj : error LNK2001: unresolved external symbol
_TRNSYSFUNCTIONS_mp_GETSIMULATIONSTARTTIME
type112.obj : error LNK2001: unresolved external symbol _TYPECK
Release/BLSLib.dll : fatal error LNK1120: 2 unresolved externals Error
executing link.exe.

BLSLib.dll - 3 error(s), 0 warning(s)
 
 
Has anybody an idea? Linked to TRNDLL.dll the types (in TRNSYS 16 mode)
work fine. I already checked the manual for the project settings.
Everything should be ok. I have to admit that I'm not a FORTRAN pro so
the solution to that problem might be very simple...
I hope you can tell me how to link my own component to the external DLL.
Best regards
Ivy

 
 
 
 



[广告] 金秋最关注楼盘-房不胜房

_______________________________________________ TRNSYS-users mailing list TRNSYS-users@cae.wisc.edu https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users

-- 
***********************************************************************
Thermal Energy System Specialists (TESS), LLC 
David BRADLEY                      22 N. Carroll Street - Suite 370 
Partner                            Madison, WI 53703 
                                   USA
P: +1.608.274.2577 
F: +1.608.278.1475
E-mail: bradley@tess-inc.com 
Web Pages:  http://www.tess-inc.com    and      http://www.trnsys.com

***********************************************************************