<br><font size=2 face="sans-serif">Dear Rémi,</font>
<br><font size=2 face="sans-serif">I attach the TRNSYS.h file with the
storage functions already added.</font>
<br><font size=2 face="sans-serif">I use this file for my code implementations
using storage functions and works fine.</font>
<br>
<br><font size=2 face="sans-serif">--------------------------------------------------------------------------<br>
Roberto Garay Martinez<br>
Labein-Tecnalia<br>
Unidad de Construcción y Desarrollo del Territorio<br>
c/Geldo. Parque Tecnológico de Bizkaia<br>
Edificio 700<br>
48160 Derio (Bizkaia)<br>
Tel.: 34 94 607 33 00<br>
Fax: 34 94 607 33 49<br>
www.labein.es<br>
---------------------------------------------------------------------------<br>
Visite nuestro blog:<br>
http://www.energiaenedificacion.com <br>
------------------------------------------------------------------------<br>
Bilbao, 17-19 de Mayo, 2010<br>
Open and Sustainable Building<br>
Edificación Adaptable y Sostenible<br>
www.OpenBuilding-2010.org<br>
--------------------------------------------------------------------------</font>
<br><font size=2 color=#800080 face="sans-serif">----- Mensaje de PERRIER
Rémi 226004 <remi.perrier@cea.fr> en Tue, 9 Mar 2010 15:09:12 +0100
-----</font>
<table>
<tr>
<td>
<div align=right><font size=3><b>Para:</b></font></div>
<td><font size=3><trnsys-users@cae.wisc.edu></font>
<tr>
<td>
<div align=right><font size=3><b>Asunto:</b></font></div>
<td><font size=3>[TRNSYS-users] TR: trnsys.h problem with storage functions</font></table>
<br><font size=2 face="Arial">Hi,</font>
<br><font size=2 face="Arial"> </font>
<br><font size=2 face="Arial">I’ve read some posts talking about the missing
storage functions in the trnsys.h file, I tried to add them manually, writing
:</font>
<br><font size=2 color=blue face="Courier New"> </font>
<br><font size=2 color=blue face="Courier New">extern</font><font size=2 face="Courier New">
</font><font size=2 color=#800000 face="Courier New">"C"</font><font size=2 face="Courier New">
</font><font size=2 color=blue face="Courier New">__declspec</font><font size=2 face="Courier New">(</font><font size=2 color=blue face="Courier New">dllimport</font><font size=2 face="Courier New">)
</font><font size=2 color=blue face="Courier New">void</font><font size=2 face="Courier New">
</font><font size=2 color=blue face="Courier New">_cdecl</font><font size=2 face="Courier New">
TRNSYSFUNCTIONS_mp_SETSTORAGEVARS(</font><font size=2 color=blue face="Courier New">double</font><font size=2 face="Courier New">[],</font><font size=2 color=blue face="Courier New">int</font><font size=2 face="Courier New">,</font><font size=2 color=blue face="Courier New">int</font><font size=2 face="Courier New">[]);</font>
<br><font size=2 color=blue face="Courier New">extern</font><font size=2 face="Courier New">
</font><font size=2 color=#800000 face="Courier New">"C"</font><font size=2 face="Courier New">
</font><font size=2 color=blue face="Courier New">__declspec</font><font size=2 face="Courier New">(</font><font size=2 color=blue face="Courier New">dllimport</font><font size=2 face="Courier New">)
</font><font size=2 color=blue face="Courier New">void</font><font size=2 face="Courier New">
</font><font size=2 color=blue face="Courier New">_cdecl</font><font size=2 face="Courier New">
TRNSYSFUNCTIONS_mp_SETSTORAGESIZE(</font><font size=2 color=blue face="Courier New">int</font><font size=2 face="Courier New">,</font><font size=2 color=blue face="Courier New">int</font><font size=2 face="Courier New">[]);</font>
<br><font size=2 color=blue face="Courier New">extern</font><font size=2 face="Courier New">
</font><font size=2 color=#800000 face="Courier New">"C"</font><font size=2 face="Courier New">
</font><font size=2 color=blue face="Courier New">__declspec</font><font size=2 face="Courier New">(</font><font size=2 color=blue face="Courier New">dllimport</font><font size=2 face="Courier New">)
</font><font size=2 color=blue face="Courier New">void</font><font size=2 face="Courier New">
</font><font size=2 color=blue face="Courier New">_cdecl</font><font size=2 face="Courier New">
TRNSYSFUNCTIONS_mp_GETSTORAGEVARS(</font><font size=2 color=blue face="Courier New">double</font><font size=2 face="Courier New">[],</font><font size=2 color=blue face="Courier New">int</font><font size=2 face="Courier New">,</font><font size=2 color=blue face="Courier New">int</font><font size=2 face="Courier New">[]);</font>
<br><font size=2 face="Courier New"> </font>
<br><font size=2 face="Courier New">in the “</font><font size=2 color=#008000 face="Courier New">Functions
to access TRNSYS global variables” </font><font size=2 face="Courier New">and
:</font>
<br><font size=2 color=blue face="Courier New"> </font>
<br><font size=2 color=blue face="Courier New">#define</font><font size=2 face="Courier New">
setStorageVars
TRNSYSFUNCTIONS_mp_SETSTORAGEVARS</font>
<br><font size=2 color=blue face="Courier New">#define</font><font size=2 face="Courier New">
setStorageSize
TRNSYSFUNCTIONS_mp_SETSTORAGESIZE</font>
<br><font size=2 color=blue face="Courier New">#define</font><font size=2 face="Courier New">
getStorageVars
TRNSYSFUNCTIONS_mp_GETSTORAGEVARS</font>
<br><font size=2 face="Courier New"> </font>
<br><font size=2 face="Courier New">In the “</font><font size=2 color=#008000 face="Courier New">Short
aliases for functions included in module TrnsysFunctions + lowercase variants
of kernel routines”</font><font size=2 face="Courier New"> part of the
trnsys.h file.</font>
<br><font size=2 face="Courier New">But I still get this error message
:</font>
<br><font size=2 face="Courier New"> </font>
<br><font size=1 face="Courier New">1>type896.obj : error LNK2019: symbole
externe non résolu __imp__TRNSYSFUNCTIONS_mp_SETSTORAGEVARS référencé dans
la fonction _TYPE896</font>
<br><font size=1 face="Courier New">1>C:\Program Files\Trnsys16\UserLib\DebugDLLs\Type896Lib.dll
: fatal error LNK1120: 1 externes non résolus</font>
<br><font size=1 face="Courier New"> </font>
<br><font size=2 face="Courier New">Do you have any idea of how I could
access to those storage functions ?</font>
<br><font size=2 face="Arial"> </font>
<br><font size=2 face="Arial"><b>Rémi PERRIER</b></font>
<br><font size=2 color=#000080 face="Arial"> </font>
<br><img src=cid:_2_071370F407136EA000510F63C12576E1>
<br><font size=2 face="Arial"><b>CEA INES</b></font>
<br><font size=1 color=#ff8100 face="Arial">Laboratoire DTS / LETh</font>
<br><font size=1 face="Arial">Bâtiment PUMA 3, P112</font>
<br><font size=1 face="Arial">BP 332 - 50, avenue du Lac Léman - 73377
Le Bourget du Lac FRANCE</font>
<br><font size=1 face="Arial">Tel : +33 (0)4 79 44 46 49</font>
<br><font size=1 face="Arial">Mobile : +33 (0)6 76 95 91 86</font>
<br><font size=1 face="Arial">Email : </font><a href=mailto:remi.perrier@cea.fr><font size=1 color=blue face="Arial"><u>remi.perrier@cea.fr</u></font></a>
<br><font size=3 face="Times New Roman"> </font>
<br><font size=3 face="Times New Roman"> </font><tt><font size=2>_______________________________________________<br>
TRNSYS-users mailing list<br>
TRNSYS-users@cae.wisc.edu<br>
https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users<br>
</font></tt><font size=2 face="sans-serif"><br>
</font>