Linker error when using libktx #530
-
Hello! I am trying to use libktx, I have forked the project and build it (statically), I linked the ktx.lib and added the include directory to my includes, however I get a linker error when trying to use ktxTexture_CreateFromNamedFile. Am I linking the right library? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I am guessing, given lack of info about platform and actual errors ... If you are building on Windows and the errors are unresolved symbols of the form |
Beta Was this translation helpful? Give feedback.
I am guessing, given lack of info about platform and actual errors ...
If you are building on Windows and the errors are unresolved symbols of the form
__imp_*
then to solve it you need to specify -DKHRONOS_STATIC on the compile command(s) when building your application. This will give your application the correct linkage for linking to a static library.