workaround for gcc 4.4 (xxx cannot be declared weak)

To compile the examples with gcc 4.4 i have had to comment the following three lines in /usr/local/cuda/include/math_functions.h

extern host device int __signbit(double) __THROW;
extern host device int __signbitf(float) __THROW;
extern host device int __signbitl(long double) __THROW;

So far, it just works. Is this fix correct or would it lead to really weird problems?

OS: opensuse 11.2M6
cudadriver_2.3_linux_64_190.18.run
cudasdk_2.3_linux.run
cudatoolkit_2.3_linux_64_suse11.1.run

I tried this and it mostly works for me too, except 16 of the examples fail to compile with the error:

/usr/bin/ld: cannot find -lglut

Where can I get a 64 bit version of this library?

Have you tried freeglut

Freeglut did the trick. Thanx.

Works very well for me (RHEL 5.3, 64-bits).

If you installed the GCC 4.4.x by yourself (for getting access to openmp :thumbup: ), do not forget to have the corresponding libstdc++ libraries into your LD_LIBRARY_PATH, else you will get into troubles !!!

Thanks !