Juan,

 

You have STLPORT defined in your compiler include path having a higher priority than the default compiler path to the stl. So when any source of your application or boost is trying to do so something like

#include <vector>

then your compiler is looking first at the STLPORT include path where it will find the vector file forcing you to use STLPORT.

 

Andrea

 


Da: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] Per conto di gj_uestc
Inviato: marted¨¬ 9 settembre 2008 6.57
A: boost-users@lists.boost.org
Oggetto: Re: [Boost-users] [boost:regex]an compiler error when use boost1_36 inapplication

 

      I activated bjam like this:"bjam --toolset=intel --with-regex link=static runtime-link=static -sICU_PATH=C:\home\gejuan\icu4c-4_0-src\icu stage'to generate a static lib "libboost_regex-iw-mt-s-1_36.lib",

to find out that 'stlport_static.5.1.lib' always been asked from "libboost_regex-iw-mt-s-1_36.lib".

      could you pls kindly tell me how can I get myself out of this?

 

Thanks very much

 

Juan

 

 

 

 

ÔÚ2008-09-08 23:52:26£¬"John Maddock" <john@johnmaddock.co.uk> дµÀ£º
>gj_uestc wrote:
>>>       When I use "libboost_regex-iw-mt-s-1_36.lib" in my application
>>> , I got such compiler error "cannot open file
>>> 'stlport_static.5.1.lib'".Should I need to find
>>> stlport_static.5.1.lib and add it by my self? Is there any Macro
>>> that may let myself choose whether or not use the
>>> 'stlport_static.5.1.lib'?
>>> 
>>> PS:The boost lib I used is compilered with ICU,Is there any chance
>>> that the 'stlport_static.5.1.lib' is brought by useage of ICU?
> 
>Nope, it will only be there if you built regex against STLPort, and if you 
>did that, then you need to be using STLPort in your application as well (and 
>obviously telling the compiler where the binary is).  You can of course 
>build regex without STLport and with ICU if you prefer.
> 
>HTH, John. 
>