I have my shared library building. Now I want to add a Windows version resource to it. I added the ‘windows-resoirces’ plugin to my build, and put my rc file in the default location. However, my build if failing when it goes to link the resource to the file. It is due to the build not picking up the linker switches I previously set and were used when creating the DLL without the version resource. Here are the various options files:
LINK : warning LNK4068: /MACHINE not specified; defaulting to X64
LINK : error LNK2001: unresolved external symbol _DllMainCRTStartup
Error goes away if I add the -nodefaultlib switches and manually link.