CesiumGS / cesium-native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error LNK2005: ZSTD_getErrorCode already defined in ktxd.lib(zstd.obj)

ComradeMashkov opened this issue · comments

Commit: bbe581b

When trying to build cesium-native with Visual Studio 17 2022 generator at the last stage I get the following erro:

zstd.lib(zstd.dll) : error LNK2005: ZSTD_getErrorCode already defined in ktxd.lib(zstd.obj)

How can I fix this error and what is the reason for this error to appear?

It's hard to say. That commit built successfully with VS2022 on our CI system:
https://github.com/CesiumGS/cesium-native/actions/runs/9031817639/job/24818805811

Is this while building cesium-native itself (perhaps linking the tests?), or while linking it into your own project?

It'll probably help to see the whole build log.