Error with nvcc and gcc 4.4

Hi , i am trying to compile a small program and i get this error:

nvcc scalarProd.cu
ptxas /tmp/tmpxft_00007299_00000000-2_scalarProd.ptx, line 66; warning : Double is not supported. Demoting to float
/usr/include/c++/4.4/x86_64-suse-linux/bits/c++locale.h: In function ‘int std::__convert_from_v(__locale_struct* const&, char*, int, const char*, …)’:
/usr/include/c++/4.4/x86_64-suse-linux/bits/c++locale.h:86: error: ‘__builtin_stdarg_start’ was not declared in this scope

The thing is that the program has no mistake because i have compiled it in Centos with gcc4.3 .
Now i have opensuse11.2 and gcc4.4…

CUDA doesn’t support gcc 4.4 (yet). You can install gcc 4.3 side-by-side with gcc 4.4. Then add a flag to nvcc to use gcc4.3.

More detail can be found in this thread:

[url=“http://forums.nvidia.com/index.php?showtopic=164598”]The Official NVIDIA Forums | NVIDIA