browndeer/coprthr — Issue #3: CLETE issue
Author: kalwalt
Created: 2012-02-15 12:24:45+00:00
State: open

I'm using Coprthr SDK on Ubuntu 11.04 32bit (Ubuntustudio). all standard example works fine but when i try to bulid the Clete examples i encounter this issue:

g++ -O3 -fpermissive -I/usr/local/cuda/include -I/usr/local/browndeer/include -c clete_clvector_example.cpp
In file included from /usr/local/browndeer/include/clvector.h:101:0,
from clete_clvector_example.cpp:21:
/usr/local/browndeer/include/CLETE/clvector_CLETE.h: In function ‘void evaluate(clvector&, const Op&, const Expression&)’:
/usr/local/browndeer/include/CLETE/clvector_CLETE.h:392:13: warning: there are no arguments to ‘exit’ that depend on a template parameter, so a declaration of ‘exit’ must be available
clete_clvector_example.cpp: In function ‘int main()’:
clete_clvector_example.cpp:42:11: error: no match for ‘operator+’ in ‘a + b’
/usr/include/c++/4.5/bits/stl_bvector.h:264:3: note: candidates are: std::_Bit_iterator std::operator+(ptrdiff_t, const std::_Bit_iterator&)
/usr/include/c++/4.5/bits/stl_bvector.h:350:3: note: std::_Bit_const_iterator std::operator+(ptrdiff_t, const std::_Bit_const_iterator&)
clete_clvector_example.cpp:42:25: error: no match for ‘operator*’ in ‘2.112e+3f * b’
clete_clvector_example.cpp:42:35: error: no matching function for call to ‘sqrt(clvector&)’
/usr/include/bits/mathcalls.h:157:1: note: candidates are: double sqrt(double)
/usr/include/c++/4.5/cmath:438:3: note: long double std::sqrt(long double)
/usr/include/c++/4.5/cmath:434:3: note: float std::sqrt(float)
clete_clvector_example.cpp:42:41: error: no match for ‘operator*’ in ‘a * b’
clete_clvector_example.cpp:42:57: error: no matching function for call to ‘sqrt(clvector&)’
/usr/include/bits/mathcalls.h:157:1: note: candidates are: double sqrt(double)
/usr/include/c++/4.5/cmath:438:3: note: long double std::sqrt(long double)
/usr/include/c++/4.5/cmath:434:3: note: float std::sqrt(float)
clete_clvector_example.cpp:42:68: error: no matching function for call to ‘cos(clvector&)’
/usr/include/bits/mathcalls.h:64:1: note: candidates are: double cos(double)
/usr/include/c++/4.5/cmath:204:3: note: long double std::cos(long double)
/usr/include/c++/4.5/cmath:200:3: note: float std::cos(float)
clete_clvector_example.cpp:43:21: error: no matching function for call to ‘fabs(clvector&)’
/usr/include/bits/mathcalls.h:182:1: note: candidates are: double fabs(double)
/usr/include/c++/4.5/cmath:252:3: note: long double std::fabs(long double)
/usr/include/c++/4.5/cmath:248:3: note: float std::fabs(float)
make: *** [clete_clvector_example.o] Error 1

any idea? i have also installed clld and LLVM-ex and also all libraries suggested (libelf clang...)