Comments (15)
@daef You need to link with bcrypt.lib
from Windows SDK.
https://msdn.microsoft.com/en-us/library/windows/desktop/aa375377(v=vs.85).aspx
@jeking3 Maybe we could add a #pragma comment
for MSVC to link the library automatically?
from uuid.
Adding bcrypt.lib for additional dependencies solved it
from uuid.
I had the same issue with vcpkg
messing up boost's linking.
I fixed it by defining BOOST_UUID_FORCE_AUTO_LINK
by using the compiler options.
from uuid.
Hmm. The CMake targets should probably export this information (rather than relying on autolinking). Cc: @pdimov
from uuid.
I think that this has been resolved in Boost 1.78 (boostorg/boost_install#54) by no longer setting BOOST_ALL_NO_LIB in the CMake configuration files.
from uuid.
Thanks @Lastique - that did the trick. If there's an update on the #pragma comment
I'd happily remove the explicit reference thou :)
from uuid.
from uuid.
My guess is that your project uses BOOST_ALL_NO_LIB and therefore you need to add bcrypt.lib to your library list manually. If that's not the case please let me know @daef - thanks.
from uuid.
The only thing I use is BOOST_ALL_DYN_LINK
from uuid.
Then it should link automatically based on the code at https://github.com/boostorg/uuid/blob/develop/include/boost/uuid/detail/random_provider_bcrypt.ipp#L17. I'll reopen for now.
from uuid.
We haven't seen any further reports of this, so I suspect it was environmental. I am going to close this out.
from uuid.
I just had the same issue
from uuid.
This is caused by vcpkg disabling the boost autolink feature (because the libraries are installed with names incompatible with boost's autolink).
I'll see how we can resolve this downstream in vcpkg with microsoft/vcpkg#4481.
from uuid.
@ras0219-msft Just wanted to point you to the documentation of macros recognized by autolink infrastructure:
https://github.com/boostorg/config/blob/develop/include/boost/config/auto_link.hpp#L15
For example, if your installed libraries simply omit mangling, you may be able to just define BOOST_AUTO_LINK_NOMANGLE
instead of disabling autolinking completely.
from uuid.
We haven't seen any further reports of this, so I suspect it was environmental. I am going to close this out.
I am also encountering this with Boost 1.72 on Windows (not using vcpkg) using find_package
with the Boost CMake config file. As far as I can tell there haven't been any changes to fix this.
from uuid.
Related Issues (20)
- Memory sanitizer warning on boost::uuids::to_string() call HOT 5
- The MD5 generated by boost-uuid-1.70.0 and boost-uuid-1.71.0 are different HOT 2
- Constructing UUIDs from 2 64 bit integers HOT 7
- Replace boost::mpl with boost::mp11 HOT 6
- Can generator is shared by multiple threads without locks? HOT 2
- Linking to bcrypt creates problems (i.e. for CMake users) HOT 9
- CI: add cmake build jobs (use boost-ci)
- CI: add bigendian test (and coverage report)
- CI: Add coverity scan integration
- Consider removing dependency on Boost.TTI HOT 1
- x86 optimized operators are slower than generic version HOT 2
- Align `uuid` to 16 bytes HOT 7
- time_generator - any opinions about adding it? HOT 12
- #pragma message doesn't show correctly when enabled BOOST_UUID_RANDOM_PROVIDER_SHOW . GCC/Clang HOT 1
- Consider separating the portable header-only random implementation to another package or library HOT 1
- threeway comparision support HOT 4
- basic_random_generator not safe in case a = a HOT 1
- random_provider_base::get_random_bytes throws entropy_error when SYS_getrandom is not available HOT 11
- Avoid undefining BOOST_AUTO_LINK_NOMANGLE if it was previously defined. HOT 2
- std::data() and std::span support HOT 32
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uuid.