[TRNSYS-users] proble on rebuilt DLL and LINKCK
David BRADLEY
d.bradley at tess-inc.com
Fri Aug 19 15:52:56 PDT 2011
Mehdi,
Type919 calls a subroutine called AIRPROP (which is part of the TESS
Libraries). You simply need to add the AIRPROP subroutine to your DLL
project. I can't tell from your message which Fortran compiler you are
using. If you are using Intel, simply right-click on the "source files"
folder of your DLL project, select "add: existing item" and then browse to
..\Trnsys17\Tess Models\SourceCode\DryAirProperties.f90 (if you are
using Trnsys17)
or to
..\Trnsys16\Tess Models\SourceCode\DryAirProperties.for (if you are
using Trnsys16)
If you are using the Compaq compiler, the process for adding a file is
more or less the same. I don't have CVF installed anymore but I seem to
remember that you can right-click on the source files folder and select
"add to project" and then browse for the file.
Kind regards,
David
On 8/19/2011 09:26, Mehdi Shahrestani wrote:
>
> Dear Trnsys Users
>
> I have a problem on rebuilt DLL for type 911(water source heat pump).
>
> To make some modification on this component I start to rebuild the dll
> fill.
>
> Before any change I have just wanted to rebuilt it as it was but on
> other type number.
>
> I change the perfoma number and also subroutine number from 919 to
> 337. I was expecting that it should be rebuilt because nothing was
> changed. But the following errors came up.
>
> I should mention that I am using "export to FORTRAN" option of studio
> to make dll files.
>
> It seems that it could not find the subroutine related to the air
> property "AirProp". It is strange because the original type "type919"
> exactly is the same as this new type but works fine.
>
> How can I link the external subroutine"AirProp".
>
> Your advices are highly appreciated.
>
> Regards
>
> Mehdi
>
> --------------------Configuration: Type237Lib - Win32
> Release--------------------
>
> Compiling Fortran...
>
> C:\Trnsys17\MyProjects\New Components\Type237\Type237.for
>
> Linking...
>
> Creating library C:\Trnsys17\UserLib\ReleaseDLLs/Type237.lib and
> object C:\Trnsys17\UserLib\ReleaseDLLs/Type237.exp
>
> Type237.obj : error LNK2001: unresolved external symbol _AIRPROP
>
> C:\Trnsys17\UserLib\ReleaseDLLs/Type237.dll : fatal error LNK1120: 1
> unresolved externals
>
> Error executing link.exe.
>
> Type237.dll - 2 error(s), 0 warning(s)
>
>
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at cae.wisc.edu
> https://mailman.cae.wisc.edu/listinfo/trnsys-users
--
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
22 North Carroll Street - suite 370
Madison, WI 53703 USA
P:+1.608.274.2577
F:+1.608.278.1475
d.bradley at tess-inc.com
http://www.tess-inc.com
http://www.trnsys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20110819/34fd7ea7/attachment-0005.htm>
More information about the TRNSYS-users
mailing list