AnsweredAssumed Answered

OpenCL Samples Build Error

Question asked by lunning on Jan 21, 2015
Latest reply on Jan 22, 2015 by dipak

Hey,guys,here comes the problem:

I rebuild the OpenCL samples in AMD APP SDK v2.9 as the referance document did, but an error encounted:

/usr/bin/ld: CMakeFiles/BinomialOptionMultiGPU.dir/BinomialOptionMultiGPU.cpp.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'

//lib/x86_64-linux-gnu/ error adding symbols: DSO missing from command line

collect2: error: ld returned 1 exit status

make[2]: *** [cl/BinomialOptionMultiGPU/bin/x86_64/Release/BinomialOptionMultiGPU] Error 1

make[1]: *** [cl/BinomialOptionMultiGPU/CMakeFiles/BinomialOptionMultiGPU.dir/all] Error 2

make: *** [all] Error 2


My system:Ubuntu 14.04 LTS.

gcc version:4.8.2

glibc version:2.19


Has anyone else has encounted this problem?How do you solve this..