Closed native-engine closed 1 year ago
Are building with CMake or Meson?
CMake with this file: https://gist.github.com/peterspackman/8cf73f7f12ba270aa8192d6911972fe8
When symbols start with __imp_
it's looking for symbols in a dynamic library, if those aren't found then you're probably linking against the static version but SPNG_STATIC
is not defined. The build definition does add that define for spng_static
so i'm not sure what's going on, are you not using CMake when linking?
Added SPNG_STATIC definition before including header, now everything is compiled without problems. Thank you!
The libspng library itself compiles under Mingw-w64 without any problems, but when compiling under Mingw-w64 of my project, the compiler displays a link error for library functions:
Under GCC, my project compiles with libspng without problems.