Boost logo

Boost :

From: Bronek Kozicki (brok_at_[hidden])
Date: 2004-02-21 15:54:17


Following problem has been reported on boost users list.

If following code is compiled with compiler option /MD (dynamically link
to runtime library) it works, but when compiled without it (statically
linked to runtime), it produces no output.

>>>> code begin
#include <string>
#include <iostream>
#include <boost/tokenizer.hpp>

int main()
{
  typedef
boost::tokenizer<boost::char_separator<std::wstring::value_type>,
std::wstring::const_iterator, std::wstring> MyTokenizer;
  const boost::char_separator<std::wstring::value_type> sep(L"a");
  MyTokenizer token(std::wstring(L"abacadaeafag"), sep);
  for (MyTokenizer::const_iterator it = token.begin(); it !=
token.end(); ++it)
    std::wcout << *it << std::endl;
}

>>>> code end

I suppose there might be some problem with vc71 static runtime library,
but maybe you have other explanation?

B.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk