编译sdk中的clock出问题
syq@syq-laptop:~/NVIDIA_CUDA_SDK/projects/clock$ nvcc clock.cu --device-emulation -I /home/syq/NVIDIA_CUDA_SDK/common/inc
/tmp/tmpxft_0000412b_00000000-6_clock.o: In function `main':
tmpxft_0000412b_00000000-5_clock.ii:(.text+0x33f): undefined reference to `cutCheckCmdLineFlag'
/tmp/tmpxft_0000412b_00000000-6_clock.o: In function `__cutilExit(int, char**)':
tmpxft_0000412b_00000000-5_clock.ii:(.text._Z11__cutilExitiPPc[__cutilExit(int, char**)]+0x1c): undefined reference to `cutCheckCmdLineFlag'
collect2: ld 返回 1
syq@syq-laptop:~/NVIDIA_CUDA_SDK/projects/clock$ gcc -v
使用内建 specs。
目标:i486-linux-gnu
配置为:../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
线程模型:posix
gcc 版本 4.1.3 20080308 (prerelease) (Ubuntu 4.1.2-21ubuntu1)
syq@syq-laptop:~/NVIDIA_CUDA_SDK/projects/clock$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2007 NVIDIA Corporation
Built on Wed_Dec__3_18:29:25_PST_2008
Cuda compilation tools, release 2.1, V0.2.1221