[TRNSYS-users] compiling a Dll in release mode using external ibraries

KEILHOLZ Werner werner.keilholz at cstb.fr
Wed Aug 12 15:00:18 PDT 2020


Another approach would be to link the libraries statically ; often libraries are available as dynamic link libraries (.dll) or static libraries (.lib).
When linking statically, the content of the library is added to the .dll or .exe compiled and the DLLs are not needed at runtime.

De : TRNSYS-users <trnsys-users-bounces at lists.onebuilding.org> De la part de David BRADLEY via TRNSYS-users
Envoyé : mercredi 12 août 2020 16:42
À : TRNSYS users mailing list at OneBuilding.org <trnsys-users at lists.onebuilding.org>
Cc : David BRADLEY <d.bradley at tess-inc.com>; Dani Carbonell Sanchez <dani.carbonell at ost.ch>
Objet : Re: [TRNSYS-users] compiling a Dll in release mode using external ibraries


Some time ago, I had a similar situation with some different libraries. I think that the solution in my case was that I found something called the "microsoft redistributable libraries" that I had to include with my Type dll. It may be that LAPACK and BLAS have a similar requirement for distributable versions of their library.

best,

 David


On 08/12/2020 01:08, Dani Carbonell Sanchez via TRNSYS-users wrote:
Dear TRNSYS team
We have developed a type that depends on external libraries LAPACK and BLAS.
We compiled the dll using the Intel Visual Fortran Composer XE for Windows.
Attached you will find the settings used.
The problem with this dll is that any user need to install the Intel Visual Composer XE for Windows.
Is there a way to compile a dll that has all dependencies inside such that the user don't need
neither the compiler nor the external libraries?

Thanks for your help.
Best regards,
Dani



_______________________________________________

TRNSYS-users mailing list

TRNSYS-users at lists.onebuilding.org<mailto:TRNSYS-users at lists.onebuilding.org>

http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org

--

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

David BRADLEY

Principal

Thermal Energy Systems Specialists, LLC

3 North Pinckney Street - suite 202

Madison, WI  53703 USA



P:+1.608.274.2577

F:+1.608.278.1475

d.bradley at tess-inc.com<mailto: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/20200812/abcfce09/attachment-0001.html>


More information about the TRNSYS-users mailing list