Sebastien,<br>  an unresolved external error indicates that there is a subroutine or
a function called in your Type that cannot be found by the compiler. I
think that the problem might be that the file that contains the list of
where to find all of those subroutines and functions may be missing
from your project. I would recommend that you check and make sure that
the file TRNDll.lib is added to your CVF project.<br>
Kind regards,<br> David<br>
<br>
<br>
<br>
Technical Support Team<br>Thermal Energy System Specialists, LLC<br>2916 Marketplace Dr, Suite 104<br>Madison, WI 53719<br>techsupport@tess-inc.com
<br>
<br>----- Original Message -----
<br>
Subject: [TRNSYS-users] Creating new type issue
<br>
From: Sébastien THOMAS <sebastien.thomas@ulg.ac.be>
<br>
Date: Fri, April 11, 2008 4:32
<br>
<table><tbody><tr><td width="1" bgcolor="#f1c352">
<br></td><td valign="top">
<div class="PrivateMsgDiv"><!-- begin sanitized html -->
<style></style>
<div class="bodyclass">
<div class="Section1">
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">When creating a new type with Compaq Visual Fortran
6.6.B I encounter a building dll problem. </span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">In fact there is a problem while calling TRNSYS
functions. CvF compiles my fortran file correctly (“USE TrnsysFunctions”
works) but error appears during building dll.</span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Here is the log:</span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">“C:\Program
Files\Trnsys16\Compilers\Cvf66\Type151\type151sourcefile.for</span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Linking...</span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">   Creating library
..\..\..\Userlib\DebugDLLs/Type151.lib and object
..\..\..\Userlib\DebugDLLs/Type151.exp</span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">type151sourcefile.obj : error LNK2001: unresolved
external symbol _TRNSYSFUNCTIONS_mp_GETSIMULATIONSTARTTIME@0</span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">type151sourcefile.obj : error LNK2001: unresolved
external symbol _TRNSYSFUNCTIONS_mp_GETSIMULATIONTIMESTEP@0</span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">..\..\..\Userlib\DebugDLLs/Type151.dll : fatal error
LNK1120: 2 unresolved externals</span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Error executing link.exe.”</span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Other user types have been created on same computer;
I can rebuild their dll file using CvF66B without any problem!</span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB"> </span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;" lang="EN-GB">PS : I saw previous mail sent to TRNSYS mailing list
about this problem. Solution was to update CvF66 to CvF66B. It is already done
on my computer.</span></font></p>
<address><em><font size="2" face="Arial" color="black"><span style="font-size: 10pt; font-family: Arial; color: black;"> </span></font></em></address>
<address><em><font size="2" face="Arial" color="black"><span style="font-size: 10pt; font-family: Arial; color: black; font-style: normal;">Thank you for your help</span></font></em></address>
<address><em><font size="2" face="Arial" color="black"><span style="font-size: 10pt; font-family: Arial; color: black;"> </span></font></em></address>
<address><em><font size="2" face="Arial" color="black"><span style="font-size: 10pt; font-family: Arial; color: black;">Sébastien THOMAS</span></font></em></address>
<address align="left"><em><font size="2" face="Arial" color="black"><span style="font-size: 10pt; font-family: Arial; color: black;">Assistant - Doctorant</span></font></em></address>
<address><em><font size="2" face="Arial" color="black"><span style="font-size: 10pt; font-family: Arial; color: black;"> </span></font></em></address>
<address><em><font size="2" face="Arial" color="black"><span style="font-size: 10pt; font-family: Arial; color: black;">Université de Liège</span></font></em></address>
<address><em><font size="2" face="Arial" color="black"><span style="font-size: 10pt; font-family: Arial; color: black;">Département Sciences et Gestion de
l'Environnement</span></font></em></address>
<address><em><font size="2" face="Arial" color="black"><span style="font-size: 10pt; font-family: Arial; color: black;">Unité Surveillance de l’Environnement
– Equipe Énergie</span></font></em></address>
<address><em><font size="2" face="Arial" color="black"><span style="font-size: 10pt; font-family: Arial; color: black;">185, Avenue de Longwy</span></font></em></address>
<address><em><font size="2" face="Arial" color="black"><span style="font-size: 10pt; font-family: Arial; color: black;">B-6700 ARLON</span></font></em></address>
<address><em><font size="2" face="Arial" color="black"><span style="font-size: 10pt; font-family: Arial; color: black;">Tel: 32-(0)63-230 982</span></font></em></address>
<address><em><font size="2" face="Arial" color="black"><span style="font-size: 10pt; font-family: Arial; color: black;">Fax: 32-(0)63 230 800</span></font></em></address>
<address><em><font size="2" face="Arial" color="black"><span style="font-size: 10pt; font-family: Arial; color: black;">email: </span></font></em><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"><a href="mailto:sebastien.thomas@ulg.ac.be" title="mailto:sebastien.thomas@ulg.ac.be" target="_new"><span title="mailto:sebastien.thomas@ulg.ac.be">sebastien.thomas@ulg.ac.be</span></a><font color="black"><span style="color: black;"></span></font></span></font></address>
<address><em><font size="2" face="Arial" color="black"><span style="font-size: 10pt; font-family: Arial; color: black;">WEB: </span></font><a href="http://www.dsge-arlon.ulg.ac.be/energie" target="_new"><font size="2" face="Arial"><span title="http://www.dsge-arlon.ulg.ac.be/ulg_surveillance/"><span style="font-size: 10pt; font-family: Arial;">http://www.dsge-arlon.ulg.ac.be/energie</span></span></font></a></em></address>
<address><em><font size="2" face="Arial" color="black" title="http://www.dsge-arlon.ulg.ac.be/ulg_surveillance/"><span style="font-size: 10pt; font-family: Arial; color: black;"><span title="http://www.dsge-arlon.ulg.ac.be/ulg_surveillance/"> </span></span></font></em></address> <span title="http://www.dsge-arlon.ulg.ac.be/ulg_surveillance/">
<address><em><font size="2" face="Arial" color="black" title="http://www.dsge-arlon.ulg.ac.be/ulg_surveillance/"><span style="font-size: 10pt; font-family: Arial; color: black;"> </span></font></em><font size="2" face="Arial" color="green" title="http://www.dsge-arlon.ulg.ac.be/ulg_surveillance/"><span style="font-size: 10pt; font-family: Arial; color: green;"> </span></font><font size="5" face="Webdings" color="green"><span style="font-size: 18pt; font-family: Webdings; color: green;">P</span></font><span title="http://www.dsge-arlon.ulg.ac.be/ulg_surveillance/"><font size="5" face="Webdings" color="green" title="http://www.dsge-arlon.ulg.ac.be/ulg_surveillance/"><span style="font-size: 18pt; font-family: Webdings; color: green;"> </span></font><font size="2" face="Arial" color="green"><span style="font-size: 10pt; font-family: Arial; color: green;"></span>Avant d'imprimer ce courriel sur papier recyclé ou de
brouillon, pensez à l’impact sur l'environnement.</font></span><font size="2" color="green"><span style="font-size: 10pt; color: green;"> </span></font></address>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p> </span></div> </div> <!-- end sanitized html -->
<hr size="1" noshade="noshade">
<pre>_______________________________________________<br>TRNSYS-users mailing list<br><a href="javascript:bodyCreateMail('TRNSYS-users%40engr.wisc.edu')">TRNSYS-users@engr.wisc.edu</a>
<br><a href="https://www.cae.wisc.edu/mailman/listinfo/trnsys-users" target="_blank">https://www.cae.wisc.edu/mailman/listinfo/trnsys-users</a></pre></div></td></tr></tbody></table>