[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TRNSYS-users] coupling c++ with trnsys / installing trnsys on ubuntu
Dear Souha,
I am not aware of a way to compile and run TRNSYS on Linux. However, I am using TRNSYS types written in C++ on Windows.
Here you can find an example, containing the C++ code of user-defined type as well as the include file for TRNSYS kernel subroutines and global variables:
https://sourceforge.net/p/trnsys-fmu/code/ci/master/tree/sources/type6139/
When you compile this on Windows, you have to link it to the typical Windows libraries (e.g., Shlwapi.lib) and the TRNSYS kernel (TRNDll.lib). If you don't like Visual C++, you can use for instance MSYS2 (https://www.msys2.org/) to compile the code in way that is more Linux style (using Make, etc.).
Best regards,
Edmund
-----Original Message-----
From: TRNSYS-users <trnsys-users-bounces@lists.onebuilding.org> On Behalf Of Souha Ferchichi via TRNSYS-users
Sent: Samstag, 8. Dezember 2018 12:00
To: trnsys-users@lists.onebuilding.org
Cc: Souha Ferchichi <ferchichi90souha@gmail.com>
Subject: [TRNSYS-users] coupling c++ with trnsys / installing trnsys on ubuntu
Dear All,
I am trying to couple my code written in c++ with trnsys 17/18, without converting the code to Microsoft visual c++. I am using a GNU compiler (g++) So Is there a possible way of doing so ?
I would like to ask also if it is possible to install trnsys on ubuntu, because it's where I compile the code.
Thank you in advance
Best Regards
--
Souha FERCHICHI
PhD student
Laboratory of Materials, Optimization and Energy for Sustainability National Engineering School of Tunis, Tunisia University Of Tunis El Manar _______________________________________________
TRNSYS-users mailing list
TRNSYS-users@lists.onebuilding.org
http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org