[Gridflow-dev] number.4.c compile error

james tittle tigital at mac.com
Thu Apr 13 14:51:29 EDT 2006


...after cvs update'ing today, I got the following error using gcc 4.01:

g++ -I/sw/include -I/usr/local/include -I/Users/tigital/include -xc++  
-fno-operator-names -fno-omit-frame-pointer -I/usr/X11R6/include -I/ 
Users/tigital/puredataDev/gridflow/lib/ruby/1.9/powerpc-darwin8.5.0 - 
I../Gem/src -falign-functions=16 -DMACOSX -Wall -Wno-unused -Wunused- 
variable -fno-omit-frame-pointer -g -fPIC -I. -O3 -funroll-loops - 
DPASS4 -c base/number.c.fcs -o base/number.4.o
/usr/include/c++/4.0.0/complex: In function 'std::complex<_Tp>  
std::conj(const std::complex<_Tp>&) [with _Tp = ruby]':
base/number.c.fcs:290:   instantiated from 'static T Ycx_mulconj<T>::f 
(T, T) [with T = std::complex<ruby>]'
base/number.c.fcs:65:   instantiated from 'static T OpLoops<O, T>::f 
(T, T) [with O = Ycx_mulconj<std::complex<ruby> >, T =  
std::complex<ruby>]'
base/number.c.fcs:67:   instantiated from 'static void OpLoops<O,  
T>::_map(long int, T*, T) [with O = Ycx_mulconj<std::complex<ruby> >,  
T = std::complex<ruby>]'
base/number.c.fcs:403:   instantiated from here
/usr/include/c++/4.0.0/complex:655: error: passing 'const ruby' as  
'this' argument of 'R R::operator-()' discards qualifiers
/usr/include/c++/4.0.0/complex: In member function  
'std::complex<_Tp>& std::complex<_Tp>::operator-=(const  
std::complex<_Up>&) [with _Up = ruby, _Tp = ruby]':
/usr/include/c++/4.0.0/complex:351:   instantiated from  
'std::complex<_Tp> std::operator-(const std::complex<_Tp>&, const  
std::complex<_Tp>&) [with _Tp = ruby]'
base/number.c.fcs:276:   instantiated from 'std::complex<_Tp> cx_sqsub 
(std::complex<_Tp>&, std::complex<_Tp>&) [with T = ruby]'
base/number.c.fcs:293:   instantiated from 'static T Ycx_sqsub<T>::f 
(T, T) [with T = std::complex<ruby>]'
base/number.c.fcs:65:   instantiated from 'static T OpLoops<O, T>::f 
(T, T) [with O = Ycx_sqsub<std::complex<ruby> >, T =  
std::complex<ruby>]'
base/number.c.fcs:67:   instantiated from 'static void OpLoops<O,  
T>::_map(long int, T*, T) [with O = Ycx_sqsub<std::complex<ruby> >, T  
= std::complex<ruby>]'
base/number.c.fcs:406:   instantiated from here
/usr/include/c++/4.0.0/complex:277: error: passing 'const ruby' as  
'this' argument of 'R::operator int32()' discards qualifiers
/usr/include/c++/4.0.0/complex:278: error: passing 'const ruby' as  
'this' argument of 'R::operator int32()' discards qualifiers
make: *** [base/number.4.o] Error 1


thanx,
jamie



More information about the Gridflow-dev mailing list