Static Windows C Runtime

2 posts / 0 new
Last post
Offline
Last seen: 2 months 2 weeks 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?

Organization:
Keywords:
Howard's picture
Offline
Last seen: 1 day 18 hours ago
Joined: 11/29/2012
Posts: 285

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:

https://community.rti.com/static/documentation/connext-dds/6.1.0/doc/manuals/connext_dds_professional/platform_notes/index.htm#platform_notes/Windows_Platforms.htm#9.2_Linking_with_Libraries_for_Windows_Platforms%3FTocPath%3D9.%2520Windows%2520Platforms%7C_____2

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.