cuDNN sample mnistCUDNN make fails

I’m installing cuDNN but the make for the test script fails. I have attached the log below. It seems to be something to do with /usr/bin/ld, but I don’t know enough to know what exactly is going wrong. Any help is greatly appreciated.

mnistcuDNN.log (2.7 KB)