mini-caffe icon indicating copy to clipboard operation
mini-caffe copied to clipboard

pthread_create

Open MCPRLab opened this issue 6 years ago • 1 comments

I have installed pthread on Ubuntu, but still have the following problem.How should I solve it?

/usr/bin/ld: CMakeFiles/run_net.dir/tests/run_net.cpp.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/run_net.dir/build.make:95: recipe for target 'run_net' failed
make[2]: *** [run_net] Error 1
CMakeFiles/Makefile2:141: recipe for target 'CMakeFiles/run_net.dir/all' failed
make[1]: *** [CMakeFiles/run_net.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 97%] Built target run_net_c
[ 98%] Built target benchmark
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

MCPRLab avatar Jan 18 '20 05:01 MCPRLab

same problem

mmchen88 avatar Aug 06 '20 05:08 mmchen88