Boost logo

Boost :

From: Srivatsan Raghavan (machinshin_at_[hidden])
Date: 2001-08-05 22:09:53


Hello all .. i've been a lurker on boost for a bit now .. and i finally felt
confident enuf to post :)
anyway.. i recently decided to check out the new boost::quaternion.. and i got a
whole boatload of errors : 73 in fact..
i'm using Microsoft Visual C++ 6.0 , Service Pack 5 with STLPort 4.5b
below is the list of errors that i got from trying to compile the
quaternion_test.cpp file that is on the boost website..

unfortunately my experience with templates is minimal at best..so i have no
clude where to start trying to fix these errors

+====+

Einstein on Quantum Mechanics:"GOD does not play dice with the universe."
Hawking on Einstein:"GOD not only plays dice with the universe, he tosses them
where we can't see the results."

--
Srivatsan Raghavan
machinshin_at_[hidden] - email
+====+
Compiling...
quaternion_test.cpp
f:\programs\vc98\include\boost\boost\math\special_functions\sinc.hpp(64) : error
C2954: template definitions cannot nest
f:\programs\vc98\include\boost\boost\math\special_functions\sinc.hpp(64) : error
C2951: template declarations are only permitted at global or namespace scope
f:\programs\vc98\include\boost\boost\math\special_functions\sinc.hpp(64) : error
C2226: syntax error : unexpected type 'U'
f:\programs\vc98\include\boost\boost\math\special_functions\sinc.hpp(66) : error
C2143: syntax error : missing '>' before '{'
f:\programs\vc98\include\boost\boost\math\special_functions\sinc.hpp(99) : error
C2059: syntax error : '<end Parse>'
f:\programs\vc98\include\boost\boost\math\special_functions\sinc.hpp(100) :
error C2143: syntax error : missing ';' before '}'
f:\programs\vc98\include\boost\boost\math\special_functions\sinhc.hpp(26) :
error C2954: template definitions cannot nest
f:\programs\vc98\include\boost\boost\math\special_functions\sinhc.hpp(64) :
error C2954: template definitions cannot nest
f:\programs\vc98\include\boost\boost\math\special_functions\sinhc.hpp(64) :
error C2951: template declarations are only permitted at global or namespace
scope
f:\programs\vc98\include\boost\boost\math\special_functions\sinhc.hpp(64) :
error C2226: syntax error : unexpected type 'U'
f:\programs\vc98\include\boost\boost\math\special_functions\sinhc.hpp(66) :
error C2143: syntax error : missing '>' before '{'
f:\programs\vc98\include\boost\boost\math\special_functions\sinhc.hpp(99) :
error C2059: syntax error : '<end Parse>'
f:\programs\vc98\include\boost\boost\math\special_functions\sinhc.hpp(100) :
error C2143: syntax error : missing ';' before '}'
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(115) : error C2954:
template definitions cannot nest
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(130) : error C2065: 'a'
: undeclared identifier
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(130) : error C2065:
'requested_a' : undeclared identifier
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(130) : error C2071:
'quaternion<T>::quaternion<T>' : illegal storage class
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(130) : error C2461:
'quaternion<T>' : constructor syntax missing formal parameters
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(131) : error C2061:
syntax error : identifier 'requested_b'
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(131) : error C2071: 'b'
: illegal storage class
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(132) : error C2061:
syntax error : identifier 'requested_c'
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(132) : error C2071: 'c'
: illegal storage class
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(133) : error C2061:
syntax error : identifier 'requested_d'
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(134) : error C2071: 'd'
: illegal storage class
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(134) : error C2143:
syntax error : missing ';' before '{'
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(134) : error C2334:
unexpected token(s) preceding '{'; skipping apparent function body
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(143) : error C2065:
'z0' : undeclared identifier
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(143) : error C2228:
left of '.real' must have class/struct/union type
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(143) : error C2071:
'quaternion<T>::quaternion<T>' : illegal storage class
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(143) : error C2461:
'quaternion<T>' : constructor syntax missing formal parameters
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(144) : error C2061:
syntax error : identifier 'z0'
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(144) : error C2071: 'b'
: illegal storage class
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(144) : error C2535:
'int __thiscall boost::quaternion<`template-parameter257'>::b(void)' : member
function already defined or declared
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(131) : see
declaration of 'b'
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(145) : error C2061:
syntax error : identifier 'z1'
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(145) : error C2071: 'c'
: illegal storage class
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(145) : error C2535:
'int __thiscall boost::quaternion<`template-parameter257'>::c(void)' : member
function already defined or declared
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(132) : see
declaration of 'c'
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(146) : error C2061:
syntax error : identifier 'z1'
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(147) : error C2071: 'd'
: illegal storage class
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(147) : error C2535:
'int __thiscall boost::quaternion<`template-parameter257'>::d(void)' : member
function already defined or declared
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(133) : see
declaration of 'd'
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(147) : error C2143:
syntax error : missing ';' before '{'
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(147) : error C2334:
unexpected token(s) preceding '{'; skipping apparent function body
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(186) : error C2535:
'class boost::quaternion<X> &__thiscall boost::quaternion<X>::operator =(const
class boost::quaternion<X> &)' : member function already defined or declared
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(186) : see
declaration of '='
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(394) : error C2373: 'b'
: redefinition; different type modifiers
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(394) : error C2373: 'c'
: redefinition; different type modifiers
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(394) : error C2373: 'd'
: redefinition; different type modifiers
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(399) : see
reference to class template instantiation 'boost::quaternion<T>' being compiled
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : error C2071:
'quaternion<float>::quaternion<float>' : illegal storage class
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : error C2461:
'quaternion<float>' : constructor syntax missing formal parameters
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : error C2061:
syntax error : identifier 'requested_b'
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : error C2071: 'b'
: illegal storage class
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : error C2061:
syntax error : identifier 'requested_c'
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : error C2071: 'c'
: illegal storage class
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : error C2061:
syntax error : identifier 'requested_d'
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : error C2071: 'd'
: illegal storage class
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : error C2143:
syntax error : missing ';' before '{'
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : error C2334:
unexpected token(s) preceding '{'; skipping apparent function body
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : error C2228:
left of '.real' must have class/struct/union type
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : error C2071:
'quaternion<float>::quaternion<float>' : illegal storage class
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : error C2461:
'quaternion<float>' : constructor syntax missing formal parameters
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : error C2061:
syntax error : identifier 'z0'
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : error C2071: 'b'
: illegal storage class
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : error C2535:
'int __thiscall boost::quaternion<float>::b(void)' : member function already
defined or declared
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : see
declaration of 'b'
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : error C2061:
syntax error : identifier 'z1'
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : error C2071: 'c'
: illegal storage class
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : error C2535:
'int __thiscall boost::quaternion<float>::c(void)' : member function already
defined or declared
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : see
declaration of 'c'
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : error C2061:
syntax error : identifier 'z1'
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : error C2071: 'd'
: illegal storage class
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : error C2535:
'int __thiscall boost::quaternion<float>::d(void)' : member function already
defined or declared
        f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : see
declaration of 'd'
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : error C2143:
syntax error : missing ';' before '{'
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(655) : error C2334:
unexpected token(s) preceding '{'; skipping apparent function body
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(680) : error C2059:
syntax error : 'return'
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(680) : error C2238:
unexpected token(s) preceding ';'
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(680) : error C2146:
syntax error : missing ';' before identifier 'unreal'
f:\programs\vc98\include\boost\boost\math\quaternion.hpp(680) : fatal error
C1004: unexpected end of file found
Error executing cl.exe.
quat.exe - 73 error(s), 0 warning(s)

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