Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulation error when using ExternalMedia in Dymola #1350

Closed
LogikSun opened this issue Nov 25, 2016 · 2 comments
Closed

Simulation error when using ExternalMedia in Dymola #1350

LogikSun opened this issue Nov 25, 2016 · 2 comments
Milestone

Comments

@LogikSun
Copy link

I am new to Modelica. I have setup ExternalMedia (CoolProp2Modelica) as the steps. But when I ran the test programs. The compiler went wrong with these messages:

msvcprt.lib(locale0_implib.obj) : error LNK2038: “_MSC_VER”No match item: value“1800”is unmatched with “1700”(ExternalMediaLib.lib(externalmedialib.obj) )
ExternalMediaLib.lib(CPState.obj) : error LNK2001: Unresolved external symbol "__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits > & __cdecl std::endl(class std::basic_ostream<char,struct std::char_traits > &)" (_imp?endl@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@z)
ExternalMediaLib.lib(FluidClass.obj) : error LNK2001: Unresolved external symbol "__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits > & __cdecl std::endl(class std::basic_ostream<char,struct std::char_traits > &)" (_imp?endl@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@1@AAV21@@z)

what should do with these? Thank you very much.

@jowr
Copy link
Member

jowr commented Nov 27, 2016

Hi, this is most certainly the wrong place for your request. If you use CoolProp version 5 or 6, please refer to https://github.com/CoolProp/ExternalMedia. In case you are using CoolProp 4, you should not need to recompile the library yourself since ExternalMedia comes with built-in support for CoolProp.

Your error message tells you that you are trying to a static library that was built with an older version of Visual Studio. In particular, you are trying to link a Visual Studio 2012 library (v1700) with a code that was compiled with Visual Studio 2013 (v1800). Change your Modelica compiler to Visual Studio 2012 to solve your issue.

@jowr jowr closed this as completed Nov 27, 2016
@ibell ibell modified the milestone: MinorRelease Nov 29, 2016
@thorade
Copy link
Contributor

thorade commented Dec 14, 2021

Same question was asked in OpenModelica forum:
https://openmodelica.org/forum/default-topic/2038-simulation-error-when-using-externalmedia-in-dymola
@LogikSun Did you find a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants