I want my program to link to different lib file under different conditions. In my jamfile,

 

lib ace_lib_static : : <name>libboost_ace-vc80-mt-sgd-5_6_8.lib <variant>debug <toolset>msvc <address-model>32

                <search>../lib/ACE_wrappers

                ;

lib ace_lib_static : : <name>libboost_ace-vc80-mt-s-5_6_8.lib <variant>release <toolset>msvc <address-model>32

                <search>../lib/ACE_wrappers

                ;

lib ace_lib_static : : <name>libboost_ace-vc80-mt-sgd.lib <variant>debug <toolset>msvc <address-model>64

                <search>../lib/ACE_wrappers/lib64

                ;

lib ace_lib_static : : <name>libboost_ace-vc80-mt-s.lib <variant>release <toolset>msvc <address-model>64

                <search>../lib/ACE_wrappers/lib64

                ;

 

 

use-project /lib/ace : .//ace_lib_static ;

 

However, when I compile under bjam address-model=64 under MSVC 8.0, the 32-bit lib file is selected, not the 64-bit one.

 

Is there anything wrong in the jam source?

 

Thanks in advance,

Sherwood