适用于 Dymola 的 Microsoft Visual C++ 编译器 [英] Microsoft Visual C++ compiler for Dymola

查看:102
本文介绍了适用于 Dymola 的 Microsoft Visual C++ 编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 32 位 Dymola 演示版 2017 中使用 Microsoft Visual Studio 14.0 的内置 C 编译器进行模拟.我选择在 MVS 安装期间包含 C++ 编译器,并且文件存在于适当的位置.将 Dymola 位置传递给编译器时,我收到错误:

编译和链接模型(Visual C++).脚本使用错误.正确的用法是:C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin\vcvars32"或者C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin\vcvars32"存储测试 32 位编译"命令cl"拼写错误或找不到.

下面附上我的设置.

解决方案

Microsoft 更改了一些脚本或目录结构.
Dymola 2017 FD01 或更新版本支持 Visual Studio 2015(又名 14.0),
所以最简单的解决方案可能是切换到最新的 Dymola 版本:

I would like to use Microsoft Visual Studio 14.0's built in C compiler for simulation in 32-bit Dymola Demo Version 2017. I have opted to include C++ compiler during MVS installation and the files exist in the proper locations. When passing Dymola the location to the compiler, I receive the error:

Compiling and linking the model (Visual C++). 
Error in script usage. The correct usage is:
    "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin\vcvars32"
  or
    "C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin\vcvars32" store
"Testing 32-bit compilation" 
The command "cl" is either misspelled or could not be found.

Below attached are my settings.

解决方案

Microsoft have changed some scripts or directory structure.
Visual Studio 2015 (aka 14.0) is supported out of the box by Dymola 2017 FD01 or newer,
so the easiest solution would probably be to switch to the very latest Dymola version:
https://www.3ds.com/products-services/catia/products/dymola/latest-release/

Also, when installing newer versions of Visual Studio, you should make sure to install the C++ components!! If you forgot to install those, you can still install them later by following these steps:

  • open Visual Studio
  • click File, New, Project, then Templates, Visual C++
  • if the C++ parts are not installed, you will have the option to install them here
  • after that, you should be able to run the compiler test as shown in the screenshot below

这篇关于适用于 Dymola 的 Microsoft Visual C++ 编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆