2009/11/10 Alastair Rankine <arsptr@internode.on.net>
#include <sstream>

int main()
{
  std::ostringstream str;
  str << "Help Me!";

  return 0;
}


Here's what I'm doing:

% g++ -o streamtest_bad -ggdb -L/opt/local/lib -lboost_unit_test_framework-mt-d streamtest.cpp

As far as I remember, boost_unit_test_framework defines main function. Having two main functions in the same application might be what's causing your problems. Another possibility is that the library and the program are compiled with different standard libraries.

Roman Perepelitsa.