Is there a way to avoid manually adding each lib dir?
boost for dummies question here: When I use boost with VC 7.1, if I link to a lib, I have to include the header, get the compiler error, copy the enormous name of the lib onto the clipboard, then search in c:\boost_1_33_1\bin for that lib. Then I select the properties of that file, copy the enormous directory name, then open the visual studio project, and add the enormous directory name to the list of directories in which to look for libs. Repeat for each lib linked to. I tried adding e:\boost_1_33_1\bin\boost\libs, e:\boost_1_33_1\bin\boost, e:\boost_1_33_1\bin e:\boost_1_33_1 as lib directories. That didn't help. Is there a less process with fewer manual steps? Thanks, Andy
On 4/22/06, Andrew Schweitzer
boost for dummies question here:
When I use boost with VC 7.1, if I link to a lib, I have to include the header, get the compiler error, copy the enormous name of the lib onto the clipboard, then search in c:\boost_1_33_1\bin for that lib. Then I select the properties of that file, copy the enormous directory name, then open the visual studio project, and add the enormous directory name to the list of directories in which to look for libs. Repeat for each lib linked to.
I tried adding e:\boost_1_33_1\bin\boost\libs, e:\boost_1_33_1\bin\boost, e:\boost_1_33_1\bin e:\boost_1_33_1 as lib directories. That didn't help.
Is there a less process with fewer manual steps?
Thanks,
Andy
If you use the 'install' target with bjam when building Boost, it puts all the lib files into a single folder. Then you only need to point to that directory when building and let auto-linking select the appropriate lib file. HTH Stuart Dootson
Stuart Dootson wrote:
If you use the 'install' target with bjam when building Boost, it puts all the lib files into a single folder. Then you only need to point to that directory when building and let auto-linking select the appropriate lib file.
Wonderful! It worked! Thanks very much. I'm not sure I needed to, but I added the --libdir parameter to bjam. My new command line is: bjam.exe "-sVC71_ROOT=D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7" -sTOOLS=vc-7_1 --libdir=%BOOST_ROOT%\bin\boost\libs install
HTH Stuart Dootson
On 4/23/06, Andrew Schweitzer
Stuart Dootson wrote:
If you use the 'install' target with bjam when building Boost, it puts all the lib files into a single folder. Then you only need to point to that directory when building and let auto-linking select the appropriate lib file.
Wonderful! It worked! Thanks very much.
I'm not sure I needed to, but I added the --libdir parameter to bjam. My new command line is:
bjam.exe "-sVC71_ROOT=D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7" -sTOOLS=vc-7_1 --libdir=%BOOST_ROOT%\bin\boost\libs install
HTH Stuart Dootson
I use something like bjam "-sTOOLS=vc-7_1" --prefix=c:\lib\boost install That puts the include hierarchy in c:\lib\boost\include\boost-1_33_1 and the libs in c:\lib\boost\lib Stuart Dootson
At 16:36 2006-04-22, Andrew Schweitzer wrote:
boost for dummies question here:
When I use boost with VC 7.1, if I link to a lib, I have to include the header, get the compiler error, copy the enormous name of the lib onto the clipboard, then search in c:\boost_1_33_1\bin for that lib. Then I select the properties of that file, copy the enormous directory name, then open the visual studio project, and add the enormous directory name to the list of directories in which to look for libs. Repeat for each lib linked to.
I tried adding e:\boost_1_33_1\bin\boost\libs, e:\boost_1_33_1\bin\boost, e:\boost_1_33_1\bin e:\boost_1_33_1 as lib directories. That didn't help.
Is there a less process with fewer manual steps?
yeah, vc7.1 does "autolink" all you have to do is include the header. not sure why you're getting errors unless you haven't told it WHERE the library files are
Thanks,
Andy
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Victor A. Wagner Jr. http://rudbek.com The five most dangerous words in the English language: "There oughta be a law"
Is there a less process with fewer manual steps?
You bet there is, if you don't want to do a full install, then do a: bjam stage and all the lib's get copied to: boost-root/stage/lib So you only have one lib search path then :-) John.
participants (4)
-
Andrew Schweitzer
-
John Maddock
-
Stuart Dootson
-
Victor A. Wagner Jr.