NVIDIA Driver version 256.40 으로 업데이트하니
gcc4.4와의 문제점은 없어지고 곧바로 -lglut 문제로 직행..
뒤져보니 GLUT 는 OpenGL utility toolkit 이란다.
yum install freeglut - 이미 설치되어있다고..
결국 /usr/lib/ 살펴보니
libglut.so.3.9.0 과 soft link로 libglut.so.3 만 있더라는.
libglut.so.3.9.0 softlink 로 libglut.so 만들어 주니 SDK code samples 부드럽게 compiled. 올레~
진작에 Release note 를 볼 것을.. 흠..
NVIDIA GPU Computing Software Development Kit CUDA SDK Release Notes Version 3.2 Release
... -------------------------------------------------------------------------------- III. (b) Known Issues on CUDA SDK for Linux --------------------------------------------------------------------------------
Note: Please see the CUDA Toolkit release notes for additional issues.
1. "ld: cannot find -lglut". On some linux installations (notably default RHEL 4 update 3 installations), building the simpleGL example (and other examples that use OpenGL) can result in a linking error like the following.
/usr/bin/ld: cannot find -lglut
Typically this is because the SDK makefiles look for libglut.so and not for variants of it (like libglut.so.3). To confirm this is the problem, simply run the following command.
ls /usr/lib | grep glut
You should see the following (or similar) output.
lrwxrwxrwx 1 root root 16 Jan 9 14:06 libglut.so.3 -> libglut.so.3.8.0 -rwxr-xr-x 1 root root 164584 Aug 14 2004 libglut.so.3.8.0
If you have libglut.so.3 in /usr/lib, simply run the following command as root.
ln -s /usr/lib/libglut.so.3 /usr/lib/libglut.so
If you do NOT have libglut.so.3 then you can check whether the glut package is installed on your RHEL system with the following command.
rpm -qa | grep glut
You should see "freeglut-2.2.2-14" or similar in the output. If not, you or your system administrator should install the package "freeglut-2.2.2-14". Refer to the Red Hat and/or rpm documentation for instructions.
If you have libglut.so.3 but you do not have write access to /usr/lib, you can also fix the problem by creating the soft link in a directory to which you have write permissions and then add that directory to the libarary search path (-L) in the Makefile. ...