Coder Social home page Coder Social logo

Comments (5)

mabrarov avatar mabrarov commented on May 17, 2024

It is recommended required to explicitly use Boost_USE_STATIC_LIBS=ON in case you want to link against static version of Boost. It is required to link against static Boost libraries in case you want to use static C/C++ runtime (this requirement is specific for Windows platform, I guess). It is not required to use static version of Boost in other cases (but I've never tested with dynamically linked Boost on Windows).
I appreciate if you could share output (console, MSVS) in case you have errors (cmake project generation errors or build errors, etc). There is nothing special in project forcing the way binaries are linked.

from asio_samples.

mabrarov avatar mabrarov commented on May 17, 2024

I'm using VS 2015 update 2 with static version of Boost C++ Libraries 1.60 and static version of Qt 5.6 also, BTW.

from asio_samples.

mabrarov avatar mabrarov commented on May 17, 2024

It seems that -D Boost_USE_STATIC_LIBS=OFF is not enough to make Boost autolinking select dynamic libraries instead static (it seems that Boost autolinking almost always selects static libraries).

from asio_samples.

mabrarov avatar mabrarov commented on May 17, 2024

Fixed cmake project to turn off Boost autolinking in case -D Boost_USE_STATIC_LIBS=ON is not used (by default Boost_USE_STATIC_LIBS is OFF according to FindBoost documentation) in pull request #51.

from asio_samples.

mabrarov avatar mabrarov commented on May 17, 2024

Tested with Boost 1.60 and MSVS 2015 update 2.

from asio_samples.

Related Issues (3)

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.