Opened 5 years ago

Last modified 3 years ago

#5827 new defect

Have a setting for dynamic/static link of the generated executable

Reported by: adrpo Owned by: sjoelund.se
Priority: high Milestone:
Component: Build Environment Version:
Keywords: Cc:

Description

Currently it takes a lot of time to compile an executable (at least on Windows) because is statically link.

Static link is nice because you can give the executable to somebody and it will still work.

We should have a setting to have dynamic link by default and static link if the user wants it. Same as we already have now for FMI compilation.

Change History (5)

comment:1 Changed 5 years ago by sjoelund.se

Then you need to deal with paths to dlls on Windows though. OMPython scripts would no longer be able to just call the executable since it doesn't have this path, no?

comment:2 Changed 5 years ago by casella

I'd say that as far as OMEdit is concerned, faster dynamic linking should be the default. In most cases you just want to compile and run your simulation

comment:3 Changed 4 years ago by casella

PR 7183 partially addresses this issue.

comment:4 Changed 4 years ago by casella

  • Milestone changed from Future to 1.18.0

comment:5 Changed 3 years ago by casella

  • Milestone 1.18.0 deleted

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.