|
Boost Users : |
From: Vivid Yang (yyd_iris_at_[hidden])
Date: 2005-04-06 21:49:37
Hi,
I failed to compile random_demo.cpp
(www.boost.org/libs/random/random_demo.cpp) with VC++6.0 under WINXP sp2.
I have attached the error message below.
(I have installed VC++6.0 service pack 4,5 and 6.)
Could anybody help?
Examples of using boost::random will help too, such as uniform_01 and
normal_distribution, etc.
Thanks a lot.
Vivid
(test2.cpp is random_demo.cpp)
e:\shared\boost_1_32_0\boost\random\detail\ptr_helper.hpp(29) : error C2529:
'<Unknown>' : reference to reference is illegal
e:\shared\boost_1_32_0\boost\random\detail\pass_through_engine.hpp(32)
: see reference to class template instantiation
'boost::random::detail::ptr_helper<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537> &>'
being c
ompiled
e:\shared\boost_1_32_0\boost\random\variate_generator.hpp(90) : see
reference to class template instantiation
'boost::random::detail::pass_through_engine<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537> &>'
being c
ompiled
E:\temp\test2\test2.cpp(71) : see reference to class template
instantiation 'boost::variate_generator<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537>
&,class boost::uniform_real<double> >' being compiled
e:\shared\boost_1_32_0\boost\random\detail\ptr_helper.hpp(30) : warning
C4181: qualifier applied to reference type ignored
e:\shared\boost_1_32_0\boost\random\detail\pass_through_engine.hpp(32)
: see reference to class template instantiation
'boost::random::detail::ptr_helper<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537> &>'
being c
ompiled
e:\shared\boost_1_32_0\boost\random\variate_generator.hpp(90) : see
reference to class template instantiation
'boost::random::detail::pass_through_engine<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537> &>'
being c
ompiled
E:\temp\test2\test2.cpp(71) : see reference to class template
instantiation 'boost::variate_generator<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537>
&,class boost::uniform_real<double> >' being compiled
e:\shared\boost_1_32_0\boost\random\detail\ptr_helper.hpp(30) : error C2529:
'<Unknown>' : reference to reference is illegal
e:\shared\boost_1_32_0\boost\random\detail\pass_through_engine.hpp(32)
: see reference to class template instantiation
'boost::random::detail::ptr_helper<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537> &>'
being c
ompiled
e:\shared\boost_1_32_0\boost\random\variate_generator.hpp(90) : see
reference to class template instantiation
'boost::random::detail::pass_through_engine<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537> &>'
being c
ompiled
E:\temp\test2\test2.cpp(71) : see reference to class template
instantiation 'boost::variate_generator<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537>
&,class boost::uniform_real<double> >' being compiled
e:\shared\boost_1_32_0\boost\random\detail\ptr_helper.hpp(31) : error C2529:
'<Unknown>' : reference to reference is illegal
e:\shared\boost_1_32_0\boost\random\detail\pass_through_engine.hpp(32)
: see reference to class template instantiation
'boost::random::detail::ptr_helper<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537> &>'
being c
ompiled
e:\shared\boost_1_32_0\boost\random\variate_generator.hpp(90) : see
reference to class template instantiation
'boost::random::detail::pass_through_engine<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537> &>'
being c
ompiled
E:\temp\test2\test2.cpp(71) : see reference to class template
instantiation 'boost::variate_generator<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537>
&,class boost::uniform_real<double> >' being compiled
e:\shared\boost_1_32_0\boost\random\detail\ptr_helper.hpp(32) : warning
C4181: qualifier applied to reference type ignored
e:\shared\boost_1_32_0\boost\random\detail\pass_through_engine.hpp(32)
: see reference to class template instantiation
'boost::random::detail::ptr_helper<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537> &>'
being c
ompiled
e:\shared\boost_1_32_0\boost\random\variate_generator.hpp(90) : see
reference to class template instantiation
'boost::random::detail::pass_through_engine<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537> &>'
being c
ompiled
E:\temp\test2\test2.cpp(71) : see reference to class template
instantiation 'boost::variate_generator<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537>
&,class boost::uniform_real<double> >' being compiled
e:\shared\boost_1_32_0\boost\random\detail\ptr_helper.hpp(32) : warning
C4181: qualifier applied to reference type ignored
e:\shared\boost_1_32_0\boost\random\detail\pass_through_engine.hpp(32)
: see reference to class template instantiation
'boost::random::detail::ptr_helper<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537> &>'
being c
ompiled
e:\shared\boost_1_32_0\boost\random\variate_generator.hpp(90) : see
reference to class template instantiation
'boost::random::detail::pass_through_engine<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537> &>'
being c
ompiled
E:\temp\test2\test2.cpp(71) : see reference to class template
instantiation 'boost::variate_generator<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537>
&,class boost::uniform_real<double> >' being compiled
e:\shared\boost_1_32_0\boost\random\detail\ptr_helper.hpp(32) : error C2529:
'<Unknown>' : reference to reference is illegal
e:\shared\boost_1_32_0\boost\random\detail\pass_through_engine.hpp(32)
: see reference to class template instantiation
'boost::random::detail::ptr_helper<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537> &>'
being c
ompiled
e:\shared\boost_1_32_0\boost\random\variate_generator.hpp(90) : see
reference to class template instantiation
'boost::random::detail::pass_through_engine<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537> &>'
being c
ompiled
E:\temp\test2\test2.cpp(71) : see reference to class template
instantiation 'boost::variate_generator<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537>
&,class boost::uniform_real<double> >' being compiled
e:\shared\boost_1_32_0\boost\random\detail\ptr_helper.hpp(32) : error C2529:
'<Unknown>' : reference to reference is illegal
e:\shared\boost_1_32_0\boost\random\detail\pass_through_engine.hpp(32)
: see reference to class template instantiation
'boost::random::detail::ptr_helper<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537> &>'
being c
ompiled
e:\shared\boost_1_32_0\boost\random\variate_generator.hpp(90) : see
reference to class template instantiation
'boost::random::detail::pass_through_engine<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537> &>'
being c
ompiled
E:\temp\test2\test2.cpp(71) : see reference to class template
instantiation 'boost::variate_generator<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537>
&,class boost::uniform_real<double> >' being compiled
e:\shared\boost_1_32_0\boost\random\detail\pass_through_engine.hpp(33) :
error C2039: 'result_type' : is not a member of '`global namespace''
e:\shared\boost_1_32_0\boost\random\variate_generator.hpp(90) : see
reference to class template instantiation
'boost::random::detail::pass_through_engine<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537> &>'
being c
ompiled
E:\temp\test2\test2.cpp(71) : see reference to class template
instantiation 'boost::variate_generator<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537>
&,class boost::uniform_real<double> >' being compiled
e:\shared\boost_1_32_0\boost\random\detail\pass_through_engine.hpp(33) :
error C2146: syntax error : missing ';' before identifier 'result_type'
e:\shared\boost_1_32_0\boost\random\variate_generator.hpp(90) : see
reference to class template instantiation
'boost::random::detail::pass_through_engine<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537> &>'
being c
ompiled
E:\temp\test2\test2.cpp(71) : see reference to class template
instantiation 'boost::variate_generator<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537>
&,class boost::uniform_real<double> >' being compiled
e:\shared\boost_1_32_0\boost\random\detail\pass_through_engine.hpp(33) :
error C2868: 'result_type' : illegal syntax for using-declaration; expected
qualified-name
e:\shared\boost_1_32_0\boost\random\variate_generator.hpp(90) : see
reference to class template instantiation
'boost::random::detail::pass_through_engine<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537> &>'
being c
ompiled
E:\temp\test2\test2.cpp(71) : see reference to class template
instantiation 'boost::variate_generator<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537>
&,class boost::uniform_real<double> >' being compiled
e:\shared\boost_1_32_0\boost\random\detail\pass_through_engine.hpp(42) :
error C2529: '<Unknown>' : reference to reference is illegal
e:\shared\boost_1_32_0\boost\random\variate_generator.hpp(90) : see
reference to class template instantiation
'boost::random::detail::pass_through_engine<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537> &>'
being c
ompiled
E:\temp\test2\test2.cpp(71) : see reference to class template
instantiation 'boost::variate_generator<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537>
&,class boost::uniform_real<double> >' being compiled
e:\shared\boost_1_32_0\boost\random\detail\pass_through_engine.hpp(43) :
warning C4181: qualifier applied to reference type ignored
e:\shared\boost_1_32_0\boost\random\variate_generator.hpp(90) : see
reference to class template instantiation
'boost::random::detail::pass_through_engine<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537> &>'
being c
ompiled
E:\temp\test2\test2.cpp(71) : see reference to class template
instantiation 'boost::variate_generator<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537>
&,class boost::uniform_real<double> >' being compiled
e:\shared\boost_1_32_0\boost\random\detail\pass_through_engine.hpp(43) :
error C2529: '<Unknown>' : reference to reference is illegal
e:\shared\boost_1_32_0\boost\random\variate_generator.hpp(90) : see
reference to class template instantiation
'boost::random::detail::pass_through_engine<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537> &>'
being c
ompiled
E:\temp\test2\test2.cpp(71) : see reference to class template
instantiation 'boost::variate_generator<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537>
&,class boost::uniform_real<double> >' being compiled
e:\shared\boost_1_32_0\boost\random\variate_generator.hpp(104) : error
C2529: '<Unknown>' : reference to reference is illegal
E:\temp\test2\test2.cpp(71) : see reference to class template
instantiation 'boost::variate_generator<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537>
&,class boost::uniform_real<double> >' being compiled
e:\shared\boost_1_32_0\boost\random\variate_generator.hpp(105) : warning
C4181: qualifier applied to reference type ignored
E:\temp\test2\test2.cpp(71) : see reference to class template
instantiation 'boost::variate_generator<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537>
&,class boost::uniform_real<double> >' being compiled
e:\shared\boost_1_32_0\boost\random\variate_generator.hpp(105) : error
C2529: '<Unknown>' : reference to reference is illegal
E:\temp\test2\test2.cpp(71) : see reference to class template
instantiation 'boost::variate_generator<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537>
&,class boost::uniform_real<double> >' being compiled
e:\shared\boost_1_32_0\boost\random\variate_generator.hpp(104) : error
C2529: '<Unknown>' : reference to reference is illegal
E:\temp\test2\test2.cpp(116) : see reference to class template
instantiation 'boost::variate_generator<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537>
&,class boost::uniform_int<int> >' being compiled
e:\shared\boost_1_32_0\boost\random\variate_generator.hpp(105) : warning
C4181: qualifier applied to reference type ignored
E:\temp\test2\test2.cpp(116) : see reference to class template
instantiation 'boost::variate_generator<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537>
&,class boost::uniform_int<int> >' being compiled
e:\shared\boost_1_32_0\boost\random\variate_generator.hpp(105) : error
C2529: '<Unknown>' : reference to reference is illegal
E:\temp\test2\test2.cpp(116) : see reference to class template
instantiation 'boost::variate_generator<class
boost::random::linear_congruential<long,48271,0,2147483647,399268537>
&,class boost::uniform_int<int> >' being compiled
E:\temp\test2\test2.cpp(124) : error C2679: binary '<<' : no operator
defined which takes a right-hand operand of type 'class
boost::random::linear_congruential<long,48271,0,2147483647,399268537>' (or
there is no acceptable conversion)
Error executing cl.exe.
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