Michael Jackson | 20 Nov 16:53
Favicon

Re: [1.37][VC8.0] Building Filesystem Library


On Nov 20, 2008, at 10:21 AM, df.trash wrote:

> I want to build the Filesystem Library on Windows so that it  
> statically links to my code at runtime.
> I use the following statement on the command line to invoke bjam:
>
> bjam release --with-filesystem --toolset=msvc-7.1 link=static
>
> This builds only 1 library: libboost_filesystem-vc80-mt-1_36.lib
> It does not build the System Library which Filesystem depends on.
>
> I'm very much new to the Boost paradigm.
> Why can I not build the System Library statically?
> Do I really need the System Library and its error handling features?
> Will the Filesystem Library need the System Library or is the System  
> Library just an option to handle errors and not essential at  
> runtime? _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

bjam release --with-filesystem --with-system --toolset=msvc-7.1  
link=static

should get you there. It should compile BOTH the filesystem and system  
libraries for you.

_________________________________________________________
Mike Jackson                  mike.jackson <at> bluequartz.net
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio
(Continue reading)

Johan Nilsson | 21 Nov 12:47

Re: [1.37][VC8.0] Building Filesystem Library

Michael Jackson wrote:
> On Nov 20, 2008, at 10:21 AM, df.trash wrote:
>
>> I want to build the Filesystem Library on Windows so that it
>> statically links to my code at runtime.
>> I use the following statement on the command line to invoke bjam:
>>
>> bjam release --with-filesystem --toolset=msvc-7.1 link=static
>>
>> This builds only 1 library: libboost_filesystem-vc80-mt-1_36.lib
>> It does not build the System Library which Filesystem depends on.
>>

[snip]

>
>
> bjam release --with-filesystem --with-system --toolset=msvc-7.1
> link=static
>
> should get you there. It should compile BOTH the filesystem and system
> libraries for you.

OTOH, as system is a dependency of filesystem - why isn't it built 
automagically? Kind of defeats the principle of least surprise.

Also, isn't there a missing stage/install target here somewhere?

/ Johan

(Continue reading)

Vladimir Prus | 22 Nov 09:40

Re: [1.37][VC8.0] Building Filesystem Library

On Friday 21 November 2008 14:47:40 Johan Nilsson wrote:
> Michael Jackson wrote:
> > On Nov 20, 2008, at 10:21 AM, df.trash wrote:
> >
> >> I want to build the Filesystem Library on Windows so that it
> >> statically links to my code at runtime.
> >> I use the following statement on the command line to invoke bjam:
> >>
> >> bjam release --with-filesystem --toolset=msvc-7.1 link=static
> >>
> >> This builds only 1 library: libboost_filesystem-vc80-mt-1_36.lib
> >> It does not build the System Library which Filesystem depends on.
> >>
> 
> [snip]
> 
> >
> >
> > bjam release --with-filesystem --with-system --toolset=msvc-7.1
> > link=static
> >
> > should get you there. It should compile BOTH the filesystem and system
> > libraries for you.
> 
> OTOH, as system is a dependency of filesystem - why isn't it built 
> automagically? Kind of defeats the principle of least surprise.
> 
> Also, isn't there a missing stage/install target here somewhere?

When I do:
(Continue reading)

Johan Nilsson | 23 Nov 19:23

Re: [1.37][VC8.0] Building Filesystem Library


"Vladimir Prus" <ghost <at> cs.msu.su> skrev i meddelandet news:200811221140.41517.ghost <at> cs.msu.su...
> On Friday 21 November 2008 14:47:40 Johan Nilsson wrote:
>> Michael Jackson wrote:
>> > On Nov 20, 2008, at 10:21 AM, df.trash wrote:
>> >

[snip]

>> 
>> >
>> >
>> > bjam release --with-filesystem --with-system --toolset=msvc-7.1
>> > link=static
>> >
>> > should get you there. It should compile BOTH the filesystem and system
>> > libraries for you.
>> 
>> OTOH, as system is a dependency of filesystem - why isn't it built 
>> automagically? Kind of defeats the principle of least surprise.
>> 
>> Also, isn't there a missing stage/install target here somewhere?
> 
> When I do:
> 
> bjam --with-filesystem stage
> 
> the system library is built and installed. Same for 'install'. df.trash, did you
> omit 'stage' or 'install' target?

(Continue reading)


Gmane