Boost logo

Boost Users :

Subject: Re: [Boost-users] [test] Linking against boost_unit_test_framework causes double-deletion in std::ostringstream
From: Roman Perepelitsa (roman.perepelitsa_at_[hidden])
Date: 2009-11-10 07:48:49


2009/11/10 Alastair Rankine <arsptr_at_[hidden]>

> #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.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net