Help with NVIDIA GPU Computing SDK

I’ve been trying to compile the sample programs in the SDK, but when I make, I got the following message:

Entering directory /home/lo16/NVIDIA_GPU_Computing_SDK/C/common' In file included from src/bank_checker.cpp:15: ./../common/inc/bank_checker.h:34: warning: type qualifiers ignored on function return type ./../common/inc/bank_checker.h:220: warning: type qualifiers ignored on function return type src/bank_checker.cpp:57: warning: type qualifiers ignored on function return type src/bank_checker.cpp:259: warning: type qualifiers ignored on function return type In file included from ./../common/inc/stopwatch.h:25, from src/cutil.cpp:33: ./../common/inc/stopwatch_linux.h:46: warning: type qualifiers ignored on function return type ./../common/inc/stopwatch_linux.h:50: warning: type qualifiers ignored on function return type ./../common/inc/stopwatch_linux.h:126: warning: type qualifiers ignored on function return type ./../common/inc/stopwatch_linux.h:143: warning: type qualifiers ignored on function return type In file included from src/cutil.cpp:33: ./../common/inc/stopwatch.h:35: warning: type qualifiers ignored on function return type In file included from src/cutil.cpp:34: ./../common/inc/bank_checker.h:34: warning: type qualifiers ignored on function return type ./../common/inc/bank_checker.h:220: warning: type qualifiers ignored on function return type In file included from ./../common/inc/stopwatch.h:25, from src/stopwatch.cpp:17: ./../common/inc/stopwatch_linux.h:46: warning: type qualifiers ignored on function return type ./../common/inc/stopwatch_linux.h:50: warning: type qualifiers ignored on function return type ./../common/inc/stopwatch_linux.h:126: warning: type qualifiers ignored on function return type ./../common/inc/stopwatch_linux.h:143: warning: type qualifiers ignored on function return type In file included from src/stopwatch.cpp:17: ./../common/inc/stopwatch.h:35: warning: type qualifiers ignored on function return type src/stopwatch.cpp:71: warning: type qualifiers ignored on function return type In file included from src/stopwatch_linux.cpp:15: ./../common/inc/stopwatch_linux.h:46: warning: type qualifiers ignored on function return type ./../common/inc/stopwatch_linux.h:50: warning: type qualifiers ignored on function return type ./../common/inc/stopwatch_linux.h:126: warning: type qualifiers ignored on function return type ./../common/inc/stopwatch_linux.h:143: warning: type qualifiers ignored on function return type a - obj/x86_64/release/bank_checker.cpp.o a - obj/x86_64/release/cmd_arg_reader.cpp.o a - obj/x86_64/release/cutil.cpp.o a - obj/x86_64/release/stopwatch.cpp.o a - obj/x86_64/release/stopwatch_linux.cpp.o a - obj/x86_64/release/multithreading.cpp.o make[1]: Leaving directory /home/lo16/NVIDIA_GPU_Computing_SDK/C/common’
make[1]: Entering directory /home/lo16/NVIDIA_GPU_Computing_SDK/C/common' a - obj/x86_64/release/paramgl.cpp.o a - obj/x86_64/release/param.cpp.o make[1]: Leaving directory /home/lo16/NVIDIA_GPU_Computing_SDK/C/common’
make[1]: Entering directory /home/lo16/NVIDIA_GPU_Computing_SDK/C/common' a - obj/x86_64/release/rendercheck_gl.cpp.o make[1]: Leaving directory /home/lo16/NVIDIA_GPU_Computing_SDK/C/common’
make[1]: Entering directory /home/lo16/NVIDIA_GPU_Computing_SDK/shared' make[1]: Leaving directory /home/lo16/NVIDIA_GPU_Computing_SDK/shared’
make[1]: Entering directory /home/lo16/NVIDIA_GPU_Computing_SDK/C/src/matrixMul' ../../../shared//lib/libshrutil_x86_64.a(shrUtils.cpp.o): In function loadPPM(char const*, unsigned char**, unsigned int*, unsigned int*, unsigned int*)‘:
shrUtils.cpp:(.text+0x1574): undefined reference to std::ctype<char>::_M_widen_init() const' shrUtils.cpp:(.text+0x1684): undefined reference to std::ctype::_M_widen_init() const’
…/…/…/shared//lib/libshrutil_x86_64.a(shrUtils.cpp.o): In function savePPM(char const*, unsigned char*, unsigned int, unsigned int, unsigned int)': shrUtils.cpp:(.text+0x1a94): undefined reference to std::ctype::_M_widen_init() const’
shrUtils.cpp:(.text+0x1c74): undefined reference to std::ctype<char>::_M_widen_init() const' ../../../shared//lib/libshrutil_x86_64.a(shrUtils.cpp.o): In function shrBOOL shrWriteFile(char const*, float const*, unsigned int, float, bool)‘:
shrUtils.cpp:(.text._Z12shrWriteFileIfE7shrBOOLPKcPKT_jS3_b[shrBOOL shrWriteFile(char const*, float const*, unsigned int, float, bool)]+0x3c4): undefined reference to std::ctype<char>::_M_widen_init() const' ../../../shared//lib/libshrutil_x86_64.a(shrUtils.cpp.o):shrUtils.cpp:(.text._Z12shrWriteFileIfE7shrBOOLPKcPKT_jS3_b[shrBOOL shrWriteFile<float>(char const*, float const*, unsigned int, float, bool)]+0x43b): more undefined references to std::ctype::_M_widen_init() const’ follow
/usr/local/cuda/lib64/libcudart.so: undefined reference to std::__detail::_List_node_base::_M_unhook()@GLIBCXX_3.4.15' /usr/local/cuda/lib64/libcudart.so: undefined reference to std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)@GLIBCXX_3.4.15
collect2: ld returned 1 exit status
make[1]: *** […/…/bin/linux/release/matrixMul] Error 1
make[1]: Leaving directory `/home/lo16/NVIDIA_GPU_Computing_SDK/C/src/matrixMul’
make: *** [src/matrixMul/Makefile.ph_build] Error 2

I used gcc-4.3.6 for this. Can anyone help me solve this problem?