Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed compile with cmake-build on windows11 #675

Open
Xu-Mj opened this issue Apr 30, 2024 · 0 comments
Open

Failed compile with cmake-build on windows11 #675

Xu-Mj opened this issue Apr 30, 2024 · 0 comments

Comments

@Xu-Mj
Copy link

Xu-Mj commented Apr 30, 2024

I got the error log:

  Creating library D:\Projects\rust\im-backend-rebuild\im-backend\target\debug\deps\cmd.lib and object D:\Projects\rust\im-backend-rebuild\im-backend\target\debug\deps\cmd.exp
          librdkafka_sys-0c6e3b2edcfc6e13.rlib(rdkafka_msgset_writer.obj) : error LNK2001: unresolved external symbol __imp_crc32
          librdkafka_sys-0c6e3b2edcfc6e13.rlib(rdkafka_sticky_assignor.obj) : error LNK2001: unresolved external symbol __imp_crc32
          librdkafka_sys-0c6e3b2edcfc6e13.rlib(rdkafka_fetcher.obj) : error LNK2001: unresolved external symbol __imp_crc32
          librdkafka_sys-0c6e3b2edcfc6e13.rlib(rdkafka_txnmgr.obj) : error LNK2001: unresolved external symbol __imp_crc32
          librdkafka_sys-0c6e3b2edcfc6e13.rlib(rdkafka_mock_handlers.obj) : error LNK2001: unresolved external symbol __imp_crc32
          librdkafka_sys-0c6e3b2edcfc6e13.rlib(rdkafka_mock_cgrp.obj) : error LNK2001: unresolved external symbol __imp_crc32
          librdkafka_sys-0c6e3b2edcfc6e13.rlib(rdkafka_request.obj) : error LNK2001: unresolved external symbol __imp_crc32
          librdkafka_sys-0c6e3b2edcfc6e13.rlib(rdbuf.obj) : error LNK2001: unresolved external symbol __imp_crc32
          librdkafka_sys-0c6e3b2edcfc6e13.rlib(rdkafka_buf.obj) : error LNK2001: unresolved external symbol __imp_crc32
          librdkafka_sys-0c6e3b2edcfc6e13.rlib(rdkafka_assignor.obj) : error LNK2001: unresolved external symbol __imp_crc32
          librdkafka_sys-0c6e3b2edcfc6e13.rlib(rdkafka_admin.obj) : error LNK2001: unresolved external symbol __imp_crc32
          librdkafka_sys-0c6e3b2edcfc6e13.rlib(rdkafka_msg.obj) : error LNK2001: unresolved external symbol __imp_crc32
          librdkafka_sys-0c6e3b2edcfc6e13.rlib(rdkafka_mock.obj) : error LNK2001: unresolved external symbol __imp_crc32
          librdkafka_sys-0c6e3b2edcfc6e13.rlib(rdkafka_broker.obj) : error LNK2001: unresolved external symbol __imp_crc32
          librdkafka_sys-0c6e3b2edcfc6e13.rlib(rdkafka_msgset_writer.obj) : error LNK2019: unresolved external symbol __imp_deflate referenced in function rd_kafka_msgset_writer_compress_gzip
          librdkafka_sys-0c6e3b2edcfc6e13.rlib(rdkafka_msgset_writer.obj) : error LNK2019: unresolved external symbol __imp_deflateEnd referenced in function rd_kafka_msgset_writer_compress_gzip
          librdkafka_sys-0c6e3b2edcfc6e13.rlib(rdkafka_msgset_writer.obj) : error LNK2019: unresolved external symbol __imp_deflateBound referenced in function rd_kafka_msgset_writer_compress_gzip
          librdkafka_sys-0c6e3b2edcfc6e13.rlib(rdkafka_msgset_writer.obj) : error LNK2019: unresolved external symbol __imp_deflateInit2_ referenced in function rd_kafka_msgset_writer_compress_gzip
          librdkafka_sys-0c6e3b2edcfc6e13.rlib(rdgz.obj) : error LNK2019: unresolved external symbol __imp_inflate referenced in function rd_gz_decompress
          librdkafka_sys-0c6e3b2edcfc6e13.rlib(rdgz.obj) : error LNK2019: unresolved external symbol __imp_inflateEnd referenced in function rd_gz_decompress
          librdkafka_sys-0c6e3b2edcfc6e13.rlib(rdgz.obj) : error LNK2019: unresolved external symbol __imp_inflateInit2_ referenced in function rd_gz_decompress

if I use the dynamic-linking and it is worked.
but I need the cmake-build feature~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant