-
Notifications
You must be signed in to change notification settings - Fork 7
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
Alternatives to "copy every dll" for windows boost dynamic linking #10
Comments
Sadly is not that easy, Boost has interdependencies to itself. That's why I picked the dumb approach of just copying all the dlls. You are right, this is a mess when having multiple boost toolchains. I'm open to any idea you have. About the layout issue, this is probably a bug of mine. Boost support was released before clion compatible layout. Thanks for pointing out. |
@Manu343726 Indeed, It's quite upset to configure boost. Even Stroustrup complaint about this. But in my case, when I use boost::filesystem, if I failed to specify boost::system in In addition, even if we have to copy all dlls, at lease we should only copy dlls of the same toolset, the same boost version, the same thread model, and the same build type(debug or release). It will be way better than copy all dlls in |
I'm on it. The problem with boost is that when you use dynamic linking that internal dependencies become dll dependencies. And some libs have dependencies to dlls that do not appear as boost components (Those we put on the for(component in ${BOOST_COMPONENTS})
file(COPY ${component}.dll)
endfor() That's pseudocode, of course
Completely agree. That should be easy: Make a folder on |
This line of code works unexpectedly when using clion layout. It copy dlls to the parent dir's bin rather than my project bin.
In addition, could you please just copy dlls we requested to bin, or a whole bunch of dlls are copied since I have many dlls of difference toolsets. I deem this will be quite easy since we can only copy dlls in
${Boost_LIBRARIES}
Thank you!
The text was updated successfully, but these errors were encountered: