RE: [boost] Re: Building from current CVS

I've managed to use the vc71 .sln files to build the serialization library, but now I have a question that probably seems pretty stupid: How does Visual Studio know which .lib file to try to link against? I'm using the headers from CVS, and Visual studio in compiling my project is trying to link against libboost_serialization-vc71-mt-sgd-1_33.lib, but my project does not mention this file, so I am confused about how to point Visual studio at the library generated from the CVS source.
-----Original Message----- From: Keith MacDonald [mailto:boost@mailclan.net] Sent: 22 May 2005 11:05 To: boost@lists.boost.org Subject: [boost] Re: Building from current CVS
Here's a batch file that I use to build Boost from CVS with VC 7.1 on XP:
========= build7.bat ========= REM Build Boost libraries with VC7.1 SET PYTHON_ROOT=C:\Apps\Python24 SET PYTHON_VERSION=2.4 REM First build JAM CD tools\build\jam_src CALL build.bat REM Now use JAM to build BOOST CD ..\..\.. @echo "Building Boost with VC 7.1 ..." tools\build\jam_src\bin.ntx86\bjam "-sTOOLS=vc-7_1" -sICU_PATH=F:\Dev\icu-3.2 > build7.log @ECHO "Finished. See build7.log" ==========================
I've not figured out how to use bjam with v2 rules, so a similar batch file for VC 8.0 works but you get a lot of warnings about unknown and obsolete compiler options.
Keith MacDonald
"Marcin Tustin" <mt@it-innovation.soton.ac.uk> wrote in message news:1F5A05DA40944243A29DC3C135A2E72F19CF6F@mailserver-2.it-in novation.soton.ac.uk...
I'm trying to build from the current CVS (actually about a
week old),
and it has some weird problem with creating files and directories.
When trying to build with a version of Jam from 1.32, it always falls over trying to create a file or directory, normally mentioning Mkdir1 first.
When trying to build the version of Jam that comes with the CVs source, it is able to build jam0.exe, but when it comes time to make bin.ntx86 it fails; and if that directory exists, the jam executable is not created; instead an error about "spawn: No such file or directory" is emittted.
I am using vc 7.1.
Any ideas for a better way to build the boost libraries?
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

In the VC 7.1 IDE, on the project property page under Linker there is a field labeled "Additional directories". In this field one specifies the directorie(s) that contain the compiled boost libraries. Within the serialization code, there are pragmas which generate the proper library name as a function of the boost configuration. This is referred to as as "auto-linking" Robert Ramey Marcin Tustin wrote:
I've managed to use the vc71 .sln files to build the serialization library, but now I have a question that probably seems pretty stupid: How does Visual Studio know which .lib file to try to link against? I'm using the headers from CVS, and Visual studio in compiling my project is trying to link against libboost_serialization-vc71-mt-sgd-1_33.lib, but my project does not mention this file, so I am confused about how to point Visual studio at the library generated from the CVS source.

At 21:08 2005-05-23, you wrote:
In the VC 7.1 IDE, on the project property page under Linker there is a field labeled "Additional directories". In this field one specifies the directorie(s) that contain the compiled boost libraries. Within the serialization code, there are pragmas which generate the proper library name as a function of the boost configuration. This is referred to as as "auto-linking"
in addition, you can permanently put the boost library (and include) directories in ALL projects for Visual Studio by going to Tools->Options..projects..VC++ Directories. I've added: $(boost_root)\include\boost-$(boost_version) to the include directories and: $(boost_root)\lib to the library directories. maintaining the two environment variables is quite easy and causes barely a ripple when boost is upgraded.
Robert Ramey
Marcin Tustin wrote:
I've managed to use the vc71 .sln files to build the serialization library, but now I have a question that probably seems pretty stupid: How does Visual Studio know which .lib file to try to link against? I'm using the headers from CVS, and Visual studio in compiling my project is trying to link against libboost_serialization-vc71-mt-sgd-1_33.lib, but my project does not mention this file, so I am confused about how to point Visual studio at the library generated from the CVS source.
_______________________________________________ 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 (3)
-
Marcin Tustin
-
Robert Ramey
-
Victor A. Wagner Jr.