1
General discussions / Dynamic Linking on Windows
« on: October 07, 2021, 06:05:33 am »
Hi all,
I'm trying to get SFML working with dynamic linking on Windows. Currently I just use Visual Studio to copy the dll files in a post build event. However, I want to switch to CMake and get real dynamic linking working. I've been trying to add the SFML dlls to my system. I copied all the dll files to C:\Windows\SysWOW64, and tried using the regsvr32 command from this directory to register my dlls. I'm assuming that SFML is 32 bit. However, I get that DLLRegisterServer not defined. Apparently this is a function that has to be in all dlls for them to be registerable. Is this function just not defined in SFML? If so what's the point of using dynamic linking with SFML? If I have to copy the dlls to my bin directory anyway, am I not using a different dll for every instance? Doesn't that defeat the entire point of dlls?
I'm trying to get SFML working with dynamic linking on Windows. Currently I just use Visual Studio to copy the dll files in a post build event. However, I want to switch to CMake and get real dynamic linking working. I've been trying to add the SFML dlls to my system. I copied all the dll files to C:\Windows\SysWOW64, and tried using the regsvr32 command from this directory to register my dlls. I'm assuming that SFML is 32 bit. However, I get that DLLRegisterServer not defined. Apparently this is a function that has to be in all dlls for them to be registerable. Is this function just not defined in SFML? If so what's the point of using dynamic linking with SFML? If I have to copy the dlls to my bin directory anyway, am I not using a different dll for every instance? Doesn't that defeat the entire point of dlls?