I’ve got glfw3.lib statically linked with the project as I need it for another library used by the project. I can build the project as a development editor or debug editor build with no issue, and run it with no issue in the editor. However, If I try a shipping build or try to package the project, I experience a linking error specifying duplicate symbols as follows:
2>[8/9] Link XRayViewer-Win64-Shipping.exe
2>glfw3.lib(win32_init.obj) : error LNK2005: NvOptimusEnablement already defined in Module.Launch.cpp.obj
2>glfw3.lib(win32_init.obj) : error LNK2005: AmdPowerXpressRequestHighPerformance already defined in Module.Launch.cpp.obj
I cannot remove glfw3 from the project as I require it for the other library.
What I cant quite understand is how development editor builds work fine, but shipping builds throw this linking error.
it does appear to be the standalone builds, any with the editor dont have the issue.