[flext] static_cast error in flbuf.cpp when compiling flext

Thomas Grill gr at grrrr.org
Fri Jan 29 16:28:01 CET 2010


Hi,
i commited a fix for Max compilation. Please update from svn and try  
again.
gr~~~

Am 29.01.2010 um 15:30 schrieb sylvain le groux:

> Hi,
> I get the following errors when trying to compile flext for Max on  
> OS X 10.5.8. with gcc-4.0.
> Any idea what I should try to do ?
>
> g++ -c -ffast-math -mmacosx-version-min=10.4 -O2   -fvisibility- 
> inlines-hidden -arch ppc -
> mcpu=G4 -faltivec    -DFLEXT_USE_SIMD -DNDEBUG -DFLEXT_EXPORTS - 
> DFLEXT_SYS=1 -I max-
> darwin/release-single -I/Applications/Max5/MaxSDK-5.1.1/c74support/ 
> max-includes -
> I/Applications/Max5/MaxSDK-5.1.1/c74support/jit-includes -I/ 
> Applications/Max5/MaxSDK-
> 5.1.1/c74support/msp-includes -I/usr/local/include/stk source/ 
> flbuf.cpp -o max-darwin/release-
> single/flbuf.opp_ppc
> source/flbuf.cpp: In member function 'int  
> flext_single::buffer::Set(const t_symbol*, bool)':
> source/flbuf.cpp:143: error: invalid static_cast from type 'float*  
> const' to type
> 'flext_single::buffer::Element*'
> source/flbuf.cpp: In member function 'bool  
> flext_single::buffer::Update()':
> source/flbuf.cpp:191: error: invalid static_cast from type 'float*  
> const' to type
> 'flext_single::buffer::Element*'
> source/flbuf.cpp: In member function 'void  
> flext_single::buffer::Frames(int, bool, bool)':
> source/flbuf.cpp:279: error: no matching function for call to  
> 'flext_single::CopySamples(t_sample*&,
> flext_single::buffer::Element*&, int&)'
> source/flsupport.h:422: note: candidates are: static void  
> flext_single::CopySamples(t_sample*, const
> t_sample*, int)
> source/flbuf.cpp:295: error: no matching function for call to
> 'flext_single::CopySamples(flext_single::buffer::Element*&,  
> t_sample*&, int&)'
> source/flsupport.h:422: note: candidates are: static void  
> flext_single::CopySamples(t_sample*, const
> t_sample*, int)
> source/flbuf.cpp:297: error: no matching function for call to
> 'flext_single::ZeroSamples(flext_single::buffer::Element*, int)'
> source/flsupport.h:428: note: candidates are: static void  
> flext_single::ZeroSamples(t_sample*, int)
> source/flbuf.cpp:300: error: no matching function for call to
> 'flext_single::ZeroSamples(flext_single::buffer::Element*&, int&)'
> source/flsupport.h:428: note: candidates are: static void  
> flext_single::ZeroSamples(t_sample*, int)
> make[1]: *** [max-darwin/release-single/flbuf.opp_ppc] Error 1
> make: *** [build-release-single] Error 2
>
> Thanks for you help !
>
> _______________________________________________
> http://grrrr.org/ext/flext
>
> flext mailing list
> flext at grrrr.org
> http://grrrr.org/cgi-bin/mailman/listinfo/flext



More information about the flext mailing list