Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

compilation with VS 2015 fails

compilation with VS 2015 fails

Hi,
I couldn't simulate any example of MSL 4.0 in OpenModelica v1.18.1 (64-bit) with "Target Build" VS 2015

The error is:

LINK : fatal error LNK1181: cannot open input file 'omcgc.lib'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
Compilation process failed. Exited with code 0x00000002.

The Models work fine with Dymoila and the same compiler.

Any idea how to fix this?

Regards,
Frank

Re: compilation with VS 2015 fails

I think the VS compilation is rather broken since some time now and we did not had resources to fix it yet.
Do you really need to compile the simulation models with Visual Studio? Maybe you can explain why. They should work fine with the OpenModelica installed gcc. Err, actually we use clang since version 1.17.

Edited by: adrpo - Jan-25-22 13:47:28

Re: compilation with VS 2015 fails

I have model with an external object. The model is supposed to run in different simulators =>  I have a .dll for e.g. simx and a static library for Dyloma, compiled with VS 2015. The simulation in OpenModelica fails because the compilers differ.

There are 0 guests and 0 other users also viewing this topic
You are here: