[RC_1_34_0] MSVC 8.0 link looking for lib*

Hi Everyone, The headers are being copied now, but the linking of unit-test targets are looking for "libboost_unit_test_framework-vc80-mt-gd-1_34.lib" when the library built and installed was "boost_unit_test_framework-vc80-gd-1_34.lib" In user-config.jam, the following line defines the toolset used: using msvc : 8.0 ; I certainly hope this helps -- and I'm still clueless how to diagnose this without a deeper understanding of the boost build system. Pointers would be most appreciated. Have a great day everyone! -- Dean Michael C. Berris C/C++ Software Architect Orange and Bronze Software Labs http://3w-agility.blogspot.com/ http://cplusplus-soup.blogspot.com/ Mobile: +639287291459 Email: dean [at] orangeandbronze [dot] com

Dean Michael Berris wrote:
Hi Everyone,
The headers are being copied now, but the linking of unit-test targets are looking for "libboost_unit_test_framework-vc80-mt-gd-1_34.lib" when the library built and installed was "boost_unit_test_framework-vc80-gd-1_34.lib"
In user-config.jam, the following line defines the toolset used:
using msvc : 8.0 ;
I certainly hope this helps -- and I'm still clueless how to diagnose this without a deeper understanding of the boost build system.
Pointers would be most appreciated.
Have a great day everyone!
I have a two part answer for you... It used to be that the default build of Boost attempted to build both single and multi thread variants, and also static and dynamic, of libraries. But it seems this is no longer the case. You can force doing a build that has all the various variants with something like: bjam -v2 install msvc-8.0/variant=debug,release/runtime-link=shared,static/threading=single,multi I'm also trying to figure out how to make that the default again :-) HTH. -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

On 7/2/06, Rene Rivera <grafikrobot@gmail.com> wrote:
It used to be that the default build of Boost attempted to build both single and multi thread variants, and also static and dynamic, of libraries. But it seems this is no longer the case.
It seems that way too to me -- but it might be something with regards to the toolset I'm using, and the configuration of BBv2 for MSVC, though I don't have a way of verifying otherwise right now. Another thing I noticed with regards to BBv2 is that even if I'm using msvc, the libraries being searched for in the linking phase still contain the "lib" prefix (a convention in the Unix build system using the GNU toolset). It's either the boost libraries aren't being built with the "lib" filename prefix in Windows, or the link configuration is looking for the wrong file. The specific use case will be for unit-tests: unit-test my_unit_test : my_unit_test.cpp ; The linker complains this: 1>LINK : fatal error LNK1104: cannot open file 'libboost_unit_test_framework-vc80-mt-gd-1_34.lib' when the library built is just named "boost_unit_test_framework-vc80-mt-gd-1_34.lib" without the "lib" prefix. It might be a misconfiguration on the "unit-test" rule, or something else, though I haven't checked yet myself.
You can force doing a build that has all the various variants with something like:
bjam -v2 install msvc-8.0/variant=debug,release/runtime-link=shared,static/threading=single,multi
I'm also trying to figure out how to make that the default again :-)
HTH.
Yup, the above tip helps. :) -- Dean Michael C. Berris C/C++ Software Architect Orange and Bronze Software Labs http://3w-agility.blogspot.com/ http://cplusplus-soup.blogspot.com/ Mobile: +639287291459 Email: dean [at] orangeandbronze [dot] com

Dean Michael Berris wrote:
On 7/2/06, Rene Rivera <grafikrobot@gmail.com> wrote:
It used to be that the default build of Boost attempted to build both single and multi thread variants, and also static and dynamic, of libraries. But it seems this is no longer the case.
It seems that way too to me -- but it might be something with regards to the toolset I'm using, and the configuration of BBv2 for MSVC, though I don't have a way of verifying otherwise right now.
It applies to any toolset, for example I'm looking at it with MinGW in addition to MSVC.
Another thing I noticed with regards to BBv2 is that even if I'm using msvc, the libraries being searched for in the linking phase still contain the "lib" prefix (a convention in the Unix build system using the GNU toolset). It's either the boost libraries aren't being built with the "lib" filename prefix in Windows, or the link configuration is looking for the wrong file. The specific use case will be for unit-tests:
unit-test my_unit_test : my_unit_test.cpp ;
The linker complains this:
1>LINK : fatal error LNK1104: cannot open file 'libboost_unit_test_framework-vc80-mt-gd-1_34.lib'
when the library built is just named "boost_unit_test_framework-vc80-mt-gd-1_34.lib" without the "lib" prefix.
It might be a misconfiguration on the "unit-test" rule, or something else, though I haven't checked yet myself.
It's yet another discrepancy between the BBv1 and BBv2 build files. Which I guess I'll have to fix. Incidentally I had also just noticed that problem when I was trying to solve the first discrepancy :-) -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo
participants (2)
-
Dean Michael Berris
-
Rene Rivera