Visual studio 2012 Visual Studio 2012 for Dymola无法编译

Visual studio 2012 Visual Studio 2012 for Dymola无法编译,visual-studio-2012,dymola,openmodelica,Visual Studio 2012,Dymola,Openmodelica,我是使用dymola的新手,我的项目有问题;实际上,我必须将液化天然气(我使用的是介质甲烷)从一个封闭的储罐转移到另一个储罐,它通过一个阀门来降低压力,但当我开始模拟时,我的编译器出现了错误。我会附上一些图片,也复制文本在这里,如果有人知道我可以做什么请 Compiling and linking the model (Visual C++). dsmodel.c dsmodel.c(330) : warning C4133: 'fonction': types incompatibles -

我是使用dymola的新手,我的项目有问题;实际上,我必须将液化天然气(我使用的是介质甲烷)从一个封闭的储罐转移到另一个储罐,它通过一个阀门来降低压力,但当我开始模拟时,我的编译器出现了错误。我会附上一些图片,也复制文本在这里,如果有人知道我可以做什么请

Compiling and linking the model (Visual C++).

dsmodel.c
dsmodel.c(330) : warning C4133: 'fonction': types incompatibles - de 'DymStruc0 *' 'ExternalThermodynamicState *'
dsmodel.c(418) : warning C4133: 'fonction': types incompatibles - de 'DymStruc0 *' 'ExternalThermodynamicState *'
dsmodel.c(766) : warning C4133: 'fonction': types incompatibles - de 'DymStruc1 *' 'ExternalSaturationProperties *'
Cration de la bibliothque dymosim.lib et de l'objet dymosim.exp
ExternalMediaLib.lib(CoolPropTools.obj) : error LNK2019: symbole externe non rsolu "private: static void __cdecl std::locale::facet::_Facet_Register(class std::locale::facet *)" (?_Facet_Register@facet@locale@std@@CAXPAV123@@Z) rfrenc dans la fonction "public: void __thiscall std::locale::facet::_Register(void)" (?_Register@facet@locale@std@@QAEXXZ)
ExternalMediaLib.lib(CoolPropTools.obj) : error LNK2019: symbole externe non rsolu "__declspec(dllimport) public: class std::locale::facet * __thiscall std::locale::facet::_Decref(void)" (__imp_?_Decref@facet@locale@std@@QAEPAV123@XZ) rfrenc dans la fonction "public: __thiscall std::locale::~locale(void)" (??1locale@std@@QAE@XZ)
ExternalMediaLib.lib(CoolPropTools.obj) : error LNK2019: symbole externe non rsolu "__declspec(dllimport) public: void __thiscall std::locale::facet::_Incref(void)" (__imp_?_Incref@facet@locale@std@@QAEXXZ) rfrenc dans la fonction "class std::codecvt<char,char,int> const & __cdecl std::use_facet<class std::codecvt<char,char,int> >(class std::locale const &)" (??$use_facet@V?$codecvt@DDH@std@@@std@@YAABV?$codecvt@DDH@0@ABVlocale@0@@Z)
dymosim.ex_ : fatal error LNK1120: 3 externes non rsolus
编译和链接模型(Visual C++)。 D模型c dsmodel.c(330):警告C4133:“功能”:类型不兼容-de'DymStruc0*'ExternalThermodynamicState*' dsmodel.c(418):警告C4133:“功能”:类型不兼容-de'DymStruc0*''ExternalThermodynamicState*' dsmodel.c(766):警告C4133:“功能”:类型不兼容-de'DymStruc1*''ExternalSaturationProperties*' 《动态图书馆》杂志 ExternalMediaLib.lib(CoolPropTools.obj):错误LNK2019:symbole externe non rsolu“私有:静态无效\uuuu cdecl std::locale::facet::\ufacet\u寄存器(类std::locale::facet*)”(?\ufacet_Register@facet@locale@std@@CAXPAV123@@Z)rfrenc dans la fonction“public:void\u thiscall std::locale::facet:\u Register(void)”(?_Register@facet@locale@std@@QAEXZ) ExternalMediaLib.lib(CoolPropTools.obj):错误LNK2019:symbole externe non rsolu“\uu declspec(dllimport)public:class std::locale::facet*\uu thiscall std::locale::facet:\u Decref(void)”(\uu imp\u0_Decref@facet@locale@std@@QAEPAV123@XZ)rfrenc dans la fonction“public:u thiscall std::locale::~locale(void)”(?)??1locale@std@@QAE@XZ) ExternalMediaLib.lib(CoolPropTools.obj):错误LNK2019:symbole externe non rsolu“\uu declspec(dllimport)public:void\uu thiscall std::locale::facet:\u incremf(void)”(\uu imp\u0_Incref@facet@locale@std@@QAEXZ)rfrenc dans la fonction“类std::codecvt const&_cdecl std::use_facet(类std::locale const&)”(??$使用_facet@V?$codecvt@DDH@std@@@std@@@YAABV$codecvt@DDH@0@ABVlocale@0@@Z) dymosim.ex 512;:致命错误LNK1120:3个外部非rsolus


ExternalMedia目前无法与MSL 4.0.0一起使用,您必须使用旧版本的MSL(请参阅此处的ExternalMedia自述)。我建议在您自己的组件中使用媒体模型之前,确保ExternalMedia的示例模型正常工作

如果问题仍然存在,代码示例将非常有助于回答您的问题