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

Configuration of MSVC++ for FMU-based C programs gnerated OMC 1.9.0

Configuration of MSVC++ for FMU-based C programs gnerated OMC 1.9.0

I'd like to build C programs based on FMUs generated by OMC 1.9.0. They work well with the gcc MinGW compiler.

With MSVC++ 10.0, the standard Debug Configuration works fine, however, the standard Release configuration does not work. I am wondering which additional setting I need to consider or worry about?

Re: Configuration of MSVC++ for FMU-based C programs gnerated OMC 1.9.0

Hi,

I don't think you can. The FMU's compiled with OpenModelica are compiled using MinGW GCC.
You cannot blend compilers and their runtimes as it will not work.
That it works in MSVC debug mode is just a coincidence.

Maybe it might work if you load the dll in your C code and call its functions but linking directly with it is a recipe for incompatibility issues.

Cheers,
Adrian Pop/

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