Boost logo

Boost :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2007-09-21 04:02:51


Beman Dawes wrote:

[...]

> I deliberately did not change error_code_user_test.cpp. It may require
> "template<>" be inserted in front of make_error_* overloads, but I want
> to let the test run through Tru64 CXX 7.1 to verify that before I change
> the test code. AFAIK, the code will still work OK with the compilers it
> is currently working with.

Seems like the change is necessary. The linker complains about an
unresolved make_error_code when linking. BTW, CXX gives some warnings about
missing default constructors or initializers and I think it is right here, too.

---%<---
hp_cxx.compile.c++
../../../bin.v2/libs/system/test/error_code_user_test.test/hp_cxx-71_006_tru64/debug/link-static/error_code_user_test.o
cxx: Warning: error_code_user_test.cpp, line 130: const variable
           "boost::lib3::lib3_error_category_const" requires an initializer --
           class "boost::lib3::lib3_error_category_imp" has no explicitly
           declared default constructor (D:misdefctocon)
     const lib3_error_category_imp lib3_error_category_const;
----------------------------------^
cxx: Warning: error_code_user_test.cpp, line 186: const variable
           "lib4::lib4_error_category_const" requires an initializer -- class
           "lib4::lib4_error_category_imp" has no explicitly declared default
           constructor (D:misdefctocon)
   const lib4_error_category_imp lib4_error_category_const;
--------------------------------^
hp_cxx.link
../../../bin.v2/libs/system/test/error_code_user_test.test/hp_cxx-71_006_tru64/debug/link-static/error_code_user_test
ld:
Unresolved:
boost::system::error_code
boost::system::make_error_code<T0=boost::lib3::error>(T0)

     cxx -noimplicit_include -g -model ansi -version V7.1-006 -ieee
-use_non_shared_libcxx -o
"../../../bin.v2/libs/system/test/error_code_user_test.test/hp_cxx-71_006_tru64/debug/link-static/error_code_user_test"
 
"../../../bin.v2/libs/system/test/error_code_user_test.test/hp_cxx-71_006_tru64/debug/link-static/error_code_user_test.o"
"../../../bin.v2/libs/system/build/hp_cxx-71_006_tru64/debug/link-static/libboost_system-d-1_35.a"
    -lrt -lm
--->%---

> Thanks for the report and fix!

You're welcome.

Markus


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