[ot-users] Wrapper compilation with clang (3.4)

Cécile CD. DAVERSIN cecile.daversin at lncmi.cnrs.fr
Tue Apr 8 16:22:16 CEST 2014


Hello, 

I'm actually using OpenTurns by coupling my own computational code via a
wrapper (see attached code).

No problems to compile (and use) with gcc (version 4.7.3), 
but I have a compilation error when I try to compile with clang (version
3.4) :

In file included from /usr/include/openturns/OT.hxx:54:
In file included from /usr/include/openturns/OTBase.hxx:28:
In file included from /usr/include/openturns/OTCommon.hxx:28:
In file included from /usr/include/openturns/AtomicFunctions.hxx:32:
In file included from /usr/include/tbb/tbb.h:67:
/usr/include/tbb/pipeline.h:348:69: error: no template named
'is_trivially_copyable' in namespace 'std'; did you mean
      '::tbb::interface6::internal::tbb_trivially_copyable'?
template<typename T> struct tbb_trivially_copyable { enum { value =
std::is_trivially_copyable<T>::value }; };

^~~~~
/usr/include/tbb/pipeline.h:348:29: note:
'::tbb::interface6::internal::tbb_trivially_copyable' declared here
template<typename T> struct tbb_trivially_copyable { enum { value =
std::is_trivially_copyable<T>::value }; };
                            ^
/usr/include/tbb/pipeline.h:348:100: error: no member named 'value' in
'tbb_trivially_copyable<T>'
template<typename T> struct tbb_trivially_copyable { enum { value =
std::is_trivially_copyable<T>::value }; };

Is this problem already known ? Any suggestion to solve it ?

(I think this message should be sent to bugs mailing list instead of
here, but everytime my message was rejected with no reason.)
Best regards,
-- 
Cécile DAVERSIN
PhD student in applied mathematics

LNCMI
CNRS - LNCMI
25, rue des Martyrs
BP 166
38042 GRENOBLE Cedex 9
FRANCE
CNRS

Tel : +33 (0)4 76 88 90 83 
Mob : +33 (0)6 71 39 95 76 
Office U 09 
M at il : cecile.daversin at lncmi.cnrs.fr 
________________________________________________________________________







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openturns.org/pipermail/users/attachments/20140408/613f74c5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LNCMI-logo.png
Type: image/png
Size: 44683 bytes
Desc: not available
URL: <http://openturns.org/pipermail/users/attachments/20140408/613f74c5/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ot_wrapper.cpp
Type: text/x-c++src
Size: 3028 bytes
Desc: not available
URL: <http://openturns.org/pipermail/users/attachments/20140408/613f74c5/attachment.cpp>


More information about the users mailing list