[boost] Re: Sorting list shared_ptr foo usingstd::list::sort()

2003-04-24 Thread Christian Engström
 sortable_ptr(const boost::weak_ptrY other) : base(other) {}
  templateclass Y
  explicit sortable_ptr(std::auto_ptrY other) : base(other) {}
  templateclass Y
  explicit sortable_ptr(Y* other) : base(other) {}
// Assignment

};

- - - -

Does this represent a sensible idea, or am I barking up a totally 
pointless tree?

Christian Engström

___
Unsubscribe  other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


[boost] How do I install boost::filesystem?

2003-03-29 Thread Christian Engström
I am trying to use the boost::filesystem library, but when I follow the 
instructions in the documentation to the best of my ability, the linker
does not seem to find the components that it needs.

I am using MSVC6 under Windows XP, and after downloading version 1.30.0, 
I typed

  bjam -sTOOLS=msvc

in the boost directory, as described in the documentation.  This seemed 
to build a lot of things, and scatter the results in various deep 
subdirectories.

When I then try to link my own test program, which uses the constructor 
boost::filesystem::path(const char*), the linker complains that it 
cannot find this symbol in any library.  I would assume that this is 
because the filesystem library has not been installed in the library 
path, but there is no mention that I can find in the documentation of 
any further actions I should perform after I have run bjam.

Copying the file

\boost_1_30_0\libs\filesystem\build\bin\libboost_filesystem.lib\msvc\debug\runtime-link-dynamic\libboost_filesystem.lib

by hand to the default MSVC library directory does not seem to have any 
effect at all, and explicitly adding it to the cl command line only 
results in the linker complaining about a lot of multiply defined 
symbols.  In any case neither of these actions is suggested in the 
documentation.

What is it that I am supposed to do?

I am quite sure that the answer is something quite trivial, because I am 
by no means any expert on the MSVC environment, but I do think that the 
Boost documentation should explicitly mention all the steps that are 
required to use any of the libraries.

I have previously beed successful in installing the regex package by 
just following the intstructions in the documentation, so for that 
library, the build and install information was evidently sufficient for 
someone like me.

___
Unsubscribe  other changes: http://lists.boost.org/mailman/listinfo.cgi/boost