Batch Mode Execution Error

User: "Akash Gupta"
New Altair Community Member
Updated by Akash Gupta

Hello Everyone,

While trying to execute the Activate model file from Terminal always results in error, I have tried the same with different Model Files (.scm extension)

"The Modelica compiler requires Visual C++ compiler version >= 10. in call to function vssGenerateSimInterpResult at line number 139 in file vssDoCompile.oml
Error: Error: The Modelica compiler requires Visual C++ compiler version >= 10. in call to function errormsgonly at line number 11 in file vssGenereateUserResultCollectGarbage.oml in call to function errormsgonly at line number 98 in file vssDoCompile.oml in call to function errormsgonly at line number 232 in file vssRunSimulation.oml in call to function errormsgonly at line number 13 in file vssExecuteBatchFiles.oml"

image

I have Visual C++ Compiler Installed in the system

image

How can i resolve this error

 

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Alexandru-Ionel Constantin"
    Altair Community Member
    Accepted Answer
    Updated by Alexandru-Ionel Constantin

    Hi Akash Gupta,

     

    Follow these steps to download and install the (free) recommended Microsoft Visual Studio C++ compiler:

    1. Go to the download page: https://visualstudio.microsoft.com/downloads/
    2. Download the Community version. During installation, make sure to include the installation of the Desktop Development with C++, which is the package that contains the C++. compiler that Activate will access. Once installed, Activate will automatically recognize the new compiler. A device restart may be required following Visual Studio installation.
    3. Verify that it is working: Within Activate, in the Compose command window, run the command vssGetCompilerName(). The return should read: “ans = vc15_community_x64”.

    Note: Depending on VS version downloaded, the above return may vary slightly.

    oml > vssGetCompilerName() ans = vc16_community_x64 >

     

    Best regards,

    Alexandru