-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[package] boost/1.74.0: won't link #5156
Comments
Are you using "Boost::disable_autolinking"? |
I don’t believe so. I am double checking with another member of the team who setup the project.
An additional piece of information; in the project where the link error occurred, we were linking Boost::headers. Changing this to Boost::Boost allows the project to link.
From: Marian Klymov ***@***.***>
Sent: Thursday, April 8, 2021 8:32 AM
To: conan-io/conan-center-index ***@***.***>
Cc: Ben Ahlborn ***@***.***>; Author ***@***.***>
Subject: Re: [conan-io/conan-center-index] [package] boost/1.74.0: won't link (#5156)
Are you using "Boost::disable_autolinking"?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#5156 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ATS3FJUKMOIZOWR3UHYGWOTTHXD7FANCNFSM42S7FGXA>.
|
We are not explicitly setting it, but we do see a message in the output message “boost/1.74.0: Disabled magic autolinking (smart and magic decisions)”.
From: Marian Klymov ***@***.***>
Sent: Thursday, April 8, 2021 8:32 AM
To: conan-io/conan-center-index ***@***.***>
Cc: Ben Ahlborn ***@***.***>; Author ***@***.***>
Subject: Re: [conan-io/conan-center-index] [package] boost/1.74.0: won't link (#5156)
Are you using "Boost::disable_autolinking"?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#5156 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ATS3FJUKMOIZOWR3UHYGWOTTHXD7FANCNFSM42S7FGXA>.
|
@Nekto89 Any ideas for this? Basically when "linking" the headers-only target |
The conan-center-index/recipes/boost/all/conanfile.py Lines 1218 to 1228 in f423487
Try adding See https://www.boost.org/doc/libs/1_75_0/libs/config/doc/html/index.html#boost_config.configuring_boost_for_your_platform.user_settable_options for the available definitions. |
@madebr With |
All cmake targets that use boost's filesystem or are exposing boost filesystem through its headers must link to |
Thanks! Yeah, had to dig through the includes in So basically Now there is just the problem that linking only |
The current conanfile only passes these definitions ( Soon, boost 1.75.0 will be released. |
I am now going through the boost recipe to add 1.76.0. |
need to link with |
Package and Environment Details (include every applicable attribute)
Conan profile (output of
conan profile show default
orconan profile show <profile>
if custom profile is in use)Steps to reproduce (Include if Applicable)
Using cmake_find_package generator and cmake find_package(Boost), the following error happens when linking:
LNK1104 cannot open file 'libboost_filesystem-vc142-mt-sgd-x64-1_74.lib'
The text was updated successfully, but these errors were encountered: