|
Boost Users : |
From: Mateusz Åoskot (mateusz_at_[hidden])
Date: 2006-03-02 05:52:09
Hi Gennadiy,
Gennadiy Rozental wrote:
> "Mateusz Loskot" <mateusz_at_[hidden]> wrote in message
> news:44064B20.4050504_at_loskot.net...
>
>>[...]
>>There is only one thing I can't explain why I had not to add
>>library (e.g. libboost_unit_test_framework-vc80-mt-1_34.lib) to link
>>with. VC++ did not complain about missing libraries or unresolved
>>symbols. OK, magic :-)
>
>
> This is an autolinking in use. Get the latest docs from cvs and read
> compilation instruction for UTF. There is section there covering it now.
Autolinking - yes, I suppose something like thig but I was not able to
explain it for myself.
I have read docs on the website and they seem out of date.
So, now I'm going to read the updated version from CVS.
>>Then, I tried to run rest of examples, unit_test_example_02.cpp
>>and unit_test_example_03.cpp, as explained above.
>>And here comes my problems I noticed with unit_test_example_02
>>and unit_test_example_03.
>>When I try to run compiled example from unit_test_example_02.cpp I get
>>memory leaks detected:
>
>
> [...] // problem decription skipped.
>
> I couldn't explain what you are expiriencing. Just one suggestion: make sure
> you link with proper library. Autolinking inforce proper name. Try to
> disable it (define BOOST_TEST_NO_LIB) and name library explicetly.
I'll check it today.
>>Also, I tried to debug UTF example 02 and 03 when they dumped memory
>>leaks and I revealed that there are exceptions thrown in lines supposed
>>to be catched by Boost Test Framework:
>
>
> Boost.Test detects that you are running under debugger and don't try to
> catch level system errors, so that you could see message from debugger and
> analize stack.
Yes, but first I tried to run example 02 and 03 not under debugger, just
executing exe files. When I started to get memory leaks dump then I
decided to debug it - as I read in list archives this recommendation.
>>Huh! That's the end of my long story :)
>>I'd be very thankful for any help how to solve this problem, especially
>>with "original" UTF library created by bjam. How to make it working?
>
>
> I will try it myself tommorow.
Thank you very much.
Siply, the problem is that UTF library build by bjam behaves differently
from the one build with VC++ project file.
I'll also test it without autolinking.
>>Please, be placable as I'm a Boost.Test newbie. I searched through
>>Boost.Test docs and lists archives but I still can not solve my problem.
>
>
> Don't rely on docs yet. I am working on an update.
Now I know that ;-)
Cheers
-- Mateusz Åoskot http://mateusz.loskot.net
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