You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create a TShader/TProgram object within my program while linking to the exported glslang target after CMake has built and installed glslang on a specific folder. I end up getting several linker errors like so:
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl glslang::TShader::TShader(enum EShLanguage)" (__imp_??0TShader@glslang@@QEAA@W4EShLanguage@@@Z) referenced in function "public: __cdecl sfxt::GLSLangShader::GLSLangShader(enum lev::ShaderStage::Enum)" (??0GLSLangShader@sfxt@@QEAA@W4Enum@ShaderStage@lev@@@Z)
Digging through the CMake files I see MachineIndependent is a static library, which expects the dllexport on certain functions to work when glslang target is built while linking to MachineIndependent, etc. but it doesn't work currently.
DUMPBIN of the glslangd.lib file shows no TShader/TProgram symbols being exported.
The text was updated successfully, but these errors were encountered:
At the moment glslang is not supporting a shared build and not creating any shared objects. This is a known problem. See #2283#2346#2196. This issue is currently not at the front of my queue, so it may not be resolved soon, at least by me.
I am trying to create a TShader/TProgram object within my program while linking to the exported glslang target after CMake has built and installed glslang on a specific folder. I end up getting several linker errors like so:
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl glslang::TShader::TShader(enum EShLanguage)" (__imp_??0TShader@glslang@@QEAA@W4EShLanguage@@@Z) referenced in function "public: __cdecl sfxt::GLSLangShader::GLSLangShader(enum lev::ShaderStage::Enum)" (??0GLSLangShader@sfxt@@QEAA@W4Enum@ShaderStage@lev@@@Z)
Digging through the CMake files I see MachineIndependent is a static library, which expects the dllexport on certain functions to work when glslang target is built while linking to MachineIndependent, etc. but it doesn't work currently.
DUMPBIN of the glslangd.lib file shows no TShader/TProgram symbols being exported.
The text was updated successfully, but these errors were encountered: