Skip to content
Discussion options

You must be logged in to vote

Is it safe/supported to use this linking method when you have dynamic libraries, using C++ APIs, so each DLL/EXE is statically linked with the STL/runtime but they're all dynamically linked to one UCRT?

That's risking catastrophe. The moment you pass a single STL object across your DLL boundaries, you're risking severe doom (especially with anything touching our global data like locales, certain atomic locks). I wouldn't do this with anything other than a monolithic EXE.

I'm currently trying to get Qt to accept a patch to optionally do hybrid CRT linking

I'm not exactly delighted to see this complexity spreading throughout the ecosystem. (This is the first I've heard about it. We have…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by StephanTLavavej
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants