I have a library (namely CEF with sandboxing support) which doesn’t support dynamic linking of C runtime on Windows (CRT) (/MD flag) which is used by Unreal by default. Is there a way to compile my project or UE4 with /MT (static C runtime linkage) instead?
I’d also wonder why /MD is the default? I guess maybe reducing compile time or reducing the size of the output.
2 Likes
Did you ever figure this out?
nope, back then I ended up modifying the library (CEF) to support /MD for sandboxing. but that project is on hold atm and I’m busy with something else.
1 Like
Well, it’s been a year so no wonder you moved on But thanks alot for answering!
Does any one know how to tell UE to link with /MT ?
You can build your lib into a dll with /MT, instead of a static library, then UE can link with that dll.