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

Unresolved external symbols: mqtt::message::DFLT_QOS and mqtt::message::DFLT_RETAINED in x86-windows build (VS2022, C++14) #522

Open
Alohaq opened this issue Nov 19, 2024 · 1 comment
Milestone

Comments

@Alohaq
Copy link

Alohaq commented Nov 19, 2024

VS2022, C++14, using vcpkg for package management, configured as x86-windows. The following compilation issues occur:

Unresolved external symbol "public: static int const mqtt::message::DFLT_QOS" (?DFLT_QOS@message@mqtt@@2HB).
Unresolved external symbol "public: static bool const mqtt::message::DFLT_RETAINED" (?DFLT_RETAINED@message@mqtt@@2_NB).

@fpagliughi
Copy link
Contributor

This keeps popping up and appears to be related to how different compilers (particularly MSVC) handle differences in linkage between C++11 and C++17 (and beyond) components. The new version, v1.5, which will be out soon, moves this library to C++17, and hopefully fixes the problem.

@fpagliughi fpagliughi added this to the v1.5 milestone Jan 3, 2025
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

2 participants