Code Monkey home page Code Monkey logo

Comments (9)

isuruf avatar isuruf commented on September 24, 2024 1

It should be set "CXXFLAGS=/DBOOST_ALL_NO_LIB"

from boost-cpp-feedstock.

isuruf avatar isuruf commented on September 24, 2024

Can you try doing set "CXXFLAGS=/DBOOST_AUTO_LINK_NOMANGLE" before the cmake invocation? You'll have to clean the build dir and rebuild after making the above change.

from boost-cpp-feedstock.

isuruf avatar isuruf commented on September 24, 2024

Alternatively, can you try changing line https://github.com/boostorg/config/blob/boost-1.67.0/include/boost/config/auto_link.hpp#L410 to

# pragma comment(lib, BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) ".lib")

from boost-cpp-feedstock.

argltuc avatar argltuc commented on September 24, 2024

Well done, set "CXXFLAGS=/DBOOST_ALL_NO_LIB" solves the problem!
Thanks for your fast answer!

The only question is: is this more like a workaround to solve a boost problem or is this the way you have to take when using static boost libs.
For me it looks more like a workaround when --layout=system is used to compile boost and then using boost static libs...

from boost-cpp-feedstock.

argltuc avatar argltuc commented on September 24, 2024

Okay, I just tested the second way with # pragma comment(lib, BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) ".lib") which works also quite fine.

Maybe it would a good idea to patch this file in the package, that the user just can call -DBoost_USE_STATIC_LIBS=ON and all works fine?

from boost-cpp-feedstock.

isuruf avatar isuruf commented on September 24, 2024

#33

from boost-cpp-feedstock.

argltuc avatar argltuc commented on September 24, 2024

@isuruf I just tried out your PR, create a boost-cpp package which I used to build my specific projects and currently it looks good and work like a charm :)

from boost-cpp-feedstock.

argltuc avatar argltuc commented on September 24, 2024

Okay, it seems we have to go one step back.
I just tried the potential new package with my minimal project and the setting -DBoost_USE_STATIC_LIBS=OFF. This was with the latest package not a problem. but now with the PR dynamic lib usage looks for libboost_system.lib and not for the needed boost_system.lib. So the failure is vice versa from the original issue.

from boost-cpp-feedstock.

jschueller avatar jschueller commented on September 24, 2024

we removed static libs

from boost-cpp-feedstock.

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.