
Hello Boost, Under VC++ 7.1, what is the proper way for me to configure my compiler so that the boost libraries (literally, the .lib files) are available? I had no problem pointing to the headers, but I'm having a heck of a time linking... Specifically, I'm interested in the Filesystem library at the moment, but my question really is general... Thanks, Dave

Dave wrote:
Hello Boost,
Under VC++ 7.1, what is the proper way for me to configure my compiler so that the boost libraries (literally, the .lib files) are available? I had no problem pointing to the headers, but I'm having a heck of a time linking...
Simply choose: Tools->Options->Projects->VC++ Directories->Library Files and add the path where you have the boost libs. This is a global settings that wiill all projects allow to resolve to find the libs. Roland

"Roland Schwarz" <roland.schwarz@chello.at> wrote in message news:41F49C16.4000600@chello.at...
Dave wrote:
Hello Boost,
Under VC++ 7.1, what is the proper way for me to configure my compiler so that the boost libraries (literally, the .lib files) are available? I had no problem pointing to the headers, but I'm having a heck of a time linking...
Simply choose: Tools->Options->Projects->VC++ Directories->Library Files and add the path where you have the boost libs.
This is a global settings that wiill all projects allow to resolve to find the libs.
Roland
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Well, the difficulty lies in the fact that the libs are spread over different directories. It may be that I simply have to add a directory for each lib...

On Mon, 24 Jan 2005 06:43:02 -0700, Dave <better_cs_now@yahoo.com> wrote:
< snipped >
Well, the difficulty lies in the fact that the libs are spread over different directories. It may be that I simply have to add a directory for each lib...
Dave - how did you build the libs? I find that if you use bjam "-sTOOLS=vc-7_1" stage or bjam "-sTOOLS=vc-7_1" install then the libraries are gathered into a single directory. The way I incorporate Boost into VC7.1 projects is to use the Visual Studio add-in @ http://www.workspacewhiz.com/OtherAddins.html#SolutionBuildEnvironment to let me define per-solution environment variables, then use those to specify extra include directories and library directories in the project properties. This allows machine independence (for example, if I work on something at home and at work, where my library paths are different) and also allows me to use different versions of libraries (not just Boost - things like libxml2 or libxslt as well) in different solutions. Stuart Dootson

"Stuart Dootson" <stuart.dootson@gmail.com> wrote in message news:8b56cad40501240607385a55b9@mail.gmail.com...
On Mon, 24 Jan 2005 06:43:02 -0700, Dave <better_cs_now@yahoo.com> wrote:
< snipped >
Well, the difficulty lies in the fact that the libs are spread over different directories. It may be that I simply have to add a directory
for
each lib...
Dave - how did you build the libs? I find that if you use
bjam "-sTOOLS=vc-7_1" stage
or
bjam "-sTOOLS=vc-7_1" install
then the libraries are gathered into a single directory.
The way I incorporate Boost into VC7.1 projects is to use the Visual Studio add-in @ http://www.workspacewhiz.com/OtherAddins.html#SolutionBuildEnvironment to let me define per-solution environment variables, then use those to specify extra include directories and library directories in the project properties.
This allows machine independence (for example, if I work on something at home and at work, where my library paths are different) and also allows me to use different versions of libraries (not just Boost - things like libxml2 or libxslt as well) in different solutions.
Stuart Dootson _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
OK, I'll try rebuilding with the command line you offer tonight. Per the "getting started" section of boost.org, I used the following command line: bjam "-sVC71_ROOT=C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7" Having them all in one directory is just what I want... Thanks, Dave

At Monday 2005-01-24 06:43, you wrote:
"Roland Schwarz" <roland.schwarz@chello.at> wrote in message news:41F49C16.4000600@chello.at...
Dave wrote:
Hello Boost,
Under VC++ 7.1, what is the proper way for me to configure my compiler so that the boost libraries (literally, the .lib files) are available? I had no problem pointing to the headers, but I'm having a heck of a time linking...
Simply choose: Tools->Options->Projects->VC++ Directories->Library Files and add the path where you have the boost libs.
This is a global settings that wiill all projects allow to resolve to find the libs.
Roland
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Well, the difficulty lies in the fact that the libs are spread over different directories. It may be that I simply have to add a directory for each lib...
the libs should NOT be spread over different directories did you build using either the stage or install options? If not, so do.
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Victor A. Wagner Jr. http://rudbek.com The five most dangerous words in the English language: "There oughta be a law"
participants (4)
-
Dave
-
Roland Schwarz
-
Stuart Dootson
-
Victor A. Wagner Jr.