Compiler Error

30 views
Skip to first unread message

proinsia...@ucdconnect.ie

unread,
Mar 28, 2018, 8:14:13 AM3/28/18
to Modelica-BuildingSystems
Hello all,

I have tried to run example models (Building Thermal 1 Zone 1D and Modelica Blocks PID Controller)  and models I have created myself using the library but whenever I do, I get the error message attached. 

I originally was using a Windows GCC compiler, which did not work. I then downloaded Microsoft Visual Studio and tried to use all of the compilers available (2012, 2013, 2015), but yet again, none of them worked.

I do not know what else I can do and any help would be very much appreciated.
Error.png

Matthis Thorade

unread,
Mar 28, 2018, 8:53:40 AM3/28/18
to Modelica-BuildingSystems
Hi,
could you please also post what version of Dymola you are using?
And what version of Visual Studio did you install?
We are currentl yusing Dymola 2018 FD01 together with Visual Studio 2015 Community Edition, so that is the combination that is confirmed to work.
Did you also install the C++ part of Visual Studio? It is not included in the defualt install, you have to explicitly select it.

Are you able to execute the Dymola compiler test, see screenshot in this SO answer:
https://stackoverflow.com/questions/45185108/microsoft-visual-c-compiler-for-dymola/45185508#45185508

Are you able to simulate any model, e.g. from the Modelica Standrad Library?
Is it just our library that shows the error?
Regards,
Matthis

proinsia...@ucdconnect.ie

unread,
Mar 28, 2018, 12:19:28 PM3/28/18
to Modelica-BuildingSystems
Hello,

I am using Dymola 2018, version 18.0.477.
I installed VS 2015 Community with updates. Yeah, when installing I went into custom and selected C++. I have also checked this by opening VS and going into create a new project and under the templates C++ is there.

No, I am unable to verify compiler for any of the newly downloaded compilers as can be seen by the screenshot. I have uninstalled and reinstalled VS previously but I still get the same errors.

I just tried to run some from the standard library and I am getting the same error message as I got earlier and attached in my initial comment. It works when I use the windows GCC compiler but not the VS compilers. I assume this means the problem is that for some reason my VS compilers arent working but windows GCC compilers dont work for the Building Systems library? 

Many thanks
Screen Shot 2018-03-28 at 17.08.31.png

Matthis Thorade

unread,
Mar 29, 2018, 5:11:20 AM3/29/18
to Modelica-BuildingSystems
Sorry, I have not seen that error before, so I can also only guess. Some ideas/questions what might have gone wrong:
Do you have full administrator rights?
VS sets some variables when it is started for the first time. Did you open it before trying to use it from Dymola?
Changes to environment variables like PATH sometimes require a restart. Did you you restart?
Googling the error message gives many results, e.g. this one:
Maybe try some of the solutions suggested on Stackoverflow?
In the end, it is not a problem with our library, but with your VS installation.

GCC should also work for large parts of our library, everything that is pure Modelica should work.
What does not work with GCC is the netCDF weather data reader, because it uses external DLLs and these would have to be compiled with the exact same compiler that is used for compilation of the Modelica code.
Reply all
Reply to author
Forward
0 new messages