I seem to be getting errors compiling .cu files that use anything c++ that includes tr1/type_traits, i.e. tr1/memory for shared_ptr, in gcc 4.4. The errors start with:
/usr/include/c++/4.4/tr1_impl/type_traits(226): error: expected an identifier
/usr/include/c++/4.4/tr1_impl/type_traits(227): error: expected a “)”
… …
Looking at that line, I presume it’s an issue with support for variadic template support missing from nvcc / cudafe. Is there an option I need to pass to enable this c++0x. I am running on ubuntu 10.04, and have seen several places where it mentions that gcc 4.4 is supported.
I seem to be getting errors compiling .cu files that use anything c++ that includes tr1/type_traits, i.e. tr1/memory for shared_ptr, in gcc 4.4. The errors start with:
/usr/include/c++/4.4/tr1_impl/type_traits(226): error: expected an identifier
/usr/include/c++/4.4/tr1_impl/type_traits(227): error: expected a “)”
… …
Looking at that line, I presume it’s an issue with support for variadic template support missing from nvcc / cudafe. Is there an option I need to pass to enable this c++0x. I am running on ubuntu 10.04, and have seen several places where it mentions that gcc 4.4 is supported.