[SOLVED] Can't compile samples?! Undefined symbol _cuDeviceTotalMem_v2?

I came on here to post that I couldn’t compile the samples because there was an undefined symbol error, unable to find ‘_cuDeviceTotalMem_v2’.

This is because I’m an idiot and had installed the developer driver for v3 when everything else is 4.0.17.

I’m just posting this for anyone else in future that has this problem - MAKE SURE THAT ALL YOUR CUDA PACKAGES HAVE THE SAME VERSION NUMBER.

Right, I’m off to go and eat some humble pie.