Giter Site home page Giter Site logo

Comments (15)

Lastique avatar Lastique commented on September 12, 2024 7

@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.

pmahend1 avatar pmahend1 commented on September 12, 2024 4

Adding bcrypt.lib for additional dependencies solved it

image

from uuid.

sagarjha avatar sagarjha commented on September 12, 2024 2

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.

mathstuf avatar mathstuf commented on September 12, 2024 1

Hmm. The CMake targets should probably export this information (rather than relying on autolinking). Cc: @pdimov

from uuid.

pdimov avatar pdimov commented on September 12, 2024 1

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.

daef avatar daef commented on September 12, 2024

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.

jeking3 avatar jeking3 commented on September 12, 2024

from uuid.

jeking3 avatar jeking3 commented on September 12, 2024

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.

daef avatar daef commented on September 12, 2024

The only thing I use is BOOST_ALL_DYN_LINK

from uuid.

jeking3 avatar jeking3 commented on September 12, 2024

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.

jeking3 avatar jeking3 commented on September 12, 2024

We haven't seen any further reports of this, so I suspect it was environmental. I am going to close this out.

from uuid.

pkoller avatar pkoller commented on September 12, 2024

I just had the same issue

from uuid.

ras0219-msft avatar ras0219-msft commented on September 12, 2024

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.

Lastique avatar Lastique commented on September 12, 2024

@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.

Be-ing avatar Be-ing commented on September 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.