Static Windows C Runtime

2 posts / 0 new
Last post
Last seen: 2 years 8 months ago
Joined: 09/20/2021
Posts: 1
Static Windows C Runtime

I see that in the latest verion of RTI, it is necessary to use the Dynamic runtime for all C++ applications. My application has a requirement to use the Static runtime to link to other (non-RTI related) libraries. Is there a way to use the static runtime to link to RTI? Failing that, is is possible to link to one lib using static and one lib using dynamic?

Howard's picture
Last seen: 2 hours 12 min ago
Joined: 11/29/2012
Posts: 574

Since quite a few years ago, with release Connext DDS 5.2.5  (2 major versions and 4 minor versions ago), Connext DDS libraries on Windows (both static and dynamic) are linked against the Windows dynamic C-Runtime libraries:

You can certainly try to have an app use both the dynamic and static C-Runtimes, but problems can arise if memory allocated by one C-Runtime is freed by the other C-Runtime.