Comments (9)
It should be set "CXXFLAGS=/DBOOST_ALL_NO_LIB"
from boost-cpp-feedstock.
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.
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.
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.
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.
from boost-cpp-feedstock.
@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.
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.
we removed static libs
from boost-cpp-feedstock.
Related Issues (20)
- find_package(Boost CONFIG REQUIRED) fails with CMake's CMP0057 related error if cmake_minimum_required is <= 3.2 HOT 5
- @conda-forge-admin update team HOT 1
- Issue with latest build HOT 8
- Adding Boost.MPI variants HOT 9
- Latest builds do not have zlib enabled HOT 5
- @conda-forge-admin, please re-render HOT 1
- Drop MPI headers HOT 4
- Incompatibility between boost 1.78.0 and libcxx 16 HOT 11
- boost consolidation/harmonization HOT 21
- Static libraries for boost-cpp HOT 1
- Symbols' exposure in Windows' shared library as distributed by boost-cpp HOT 1
- @conda-forge-admin update version HOT 1
- Is there a way to install a boost header only package? HOT 11
- Creating a libboost-headers only package from existing recipe fails HOT 2
- @conda-forge-admin, please update version HOT 2
- This is now archived
- boost_zlib is missing from Windows build? HOT 10
- @conda-forge-admin, please re-render HOT 1
- make a boost-cpp 1.72 branch HOT 3
- package variant without header files? HOT 6
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 boost-cpp-feedstock.