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: | Adrian Pop | Owned by: | Martin Sjölund |
---|---|---|---|
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 by , 5 years ago
comment:2 by , 5 years ago
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:4 by , 4 years ago
Milestone: | Future → 1.18.0 |
---|
Note:
See TracTickets
for help on using tickets.
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?