[program_options + test] cw 8.3 fails all tests

As shown in http://tinyurl.com/3smdm all program_options tests fail on cw 8.3, because boost.test refers to the _errno variable, but that reference is somehow unresolved. Could anybody suggest any solution? TIA, Volodyaya

"Gennadiy Rozental" <gennadiy.rozental@thomson.com> writes:
all program_options tests fail on cw 8.3, because boost.test refers to the _errno variable, but that reference is somehow unresolved.
I don't think I refer to this veriable (at least directly). Something compiler related.
It appears to be related to the use of std::setw. Maybe you could use some hacks to try to force it to recognize errno, e.g. directly referencing it? Howard, can you think of any way to approach debugging this? [ incidentally, IMO the use of >135 columns of text in libs/test/src/unit_test_result.cpp is impolite. Of course I can't force anyone to stay within 80 columns, but 138 is unreasonably wide for code that other people have to read ] -- Dave Abrahams Boost Consulting http://www.boost-consulting.com

On Aug 26, 2004, at 7:28 AM, David Abrahams wrote:
"Gennadiy Rozental" <gennadiy.rozental@thomson.com> writes:
all program_options tests fail on cw 8.3, because boost.test refers to the _errno variable, but that reference is somehow unresolved.
I don't think I refer to this veriable (at least directly). Something compiler related.
It appears to be related to the use of std::setw. Maybe you could use some hacks to try to force it to recognize errno, e.g. directly referencing it? Howard, can you think of any way to approach debugging this?
I would start with a HelloWorld. If that works I would gradually move stuff from the test into the HelloWorld until I could replicate the problem. That process might identify what is causing the problem. std::setw is a pretty simple inlined mechanism. It does nothing but set a integral variable in the ios_base. This may be a red herring. -Howard
participants (4)
-
David Abrahams
-
Gennadiy Rozental
-
Howard Hinnant
-
Vladimir Prus