gcc 4.6.1 support SDK sample code error

Dear All,

Hi, I am new for CUDA and GPU computing. I am using Mandriva 2011 64bit OS on Acer Aspire-5742G laptop, which is powered by GeFore GT 420M (compute capability 2.1). I was trying to compile SDK version 4.0 using on 4.0 version driver and toolkit but I got a lot of ‘unsupported gcc Version’ error messages from gcc-4.6.1 compiler. Please could you give me an advice how to work with this GCC version?

Thanks in advance