Boost Users :
Subject: Re: [Boost-users] linking and including in visual studio
From: Mark R Stallard (stallard_at_[hidden])
Date: 2016-04-26 16:51:26
David Medine <dmedine_at_[hidden]> wrote:
> However, I am revising some Visual Studio projects that use boost and I
> realized that the path I gave for 'Additional Library Directories' is
> $(BOOST_ROOT)/lib, but my version of boost hasn't got this directory
> actually $(BOOST_ROOT)\libs). I then removed all references to boost from
> 'Additional Library Directories', and 'Additional Include Directories'
> the application builds and runs swimmingly.
> This leads me to believe, that assigning the BOOST_ROOT environment
> in Windows is the only step that is needed for VS's auto linking magic to
> link correctly to boost. Am I right here, or is there something I am
In my experience, Visual Studio does not automatically incorporate
(or $(BOOST_ROOT)/lib) into its compile and link search paths. I wouldn't
expect it to do that, either.
Could it be that you placed a current or previous value of $BOOST_ROOT into
other environment variables? I believe that $(IncludePath) and $(LibPath)
are used by Microsoft's compile and link tools. Check the values of both.
I don't recommend that you get too comfortable with this mysteriously
"correct" build behavior. If you have multiple versions of Boost installed,
you might not be building with the version you intended. For the time
being, you could try displaying your full compile and link commands by
changing "Suppress Startup Banner" to "No" in the property pages
C/C++ > General and Linker > General.
|+| M a r k |+|
Business Application Services
Global Business Services Information Technology
880 Technology Park Drive
Billerica, MA 01821
This message contains information that may be confidential and privileged.
Unless you are the addressee (or authorized to receive mail for the
addressee), you should not use, copy or disclose to anyone this message or
any information contained in this message. If you have received this message
in error, please so advise the sender by reply e-mail and delete this
message. Thank you for your cooperation.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net