Error compile video_data_layer in visual studio 2013
gaow0007 opened this issue · 1 comments
gaow0007 commented
First the code runs on the windows;
When VS compiles the video_data_layer, it occurs some errors like this and I am confused with it.
6>video_data_layer.obj : error LNK2001: unresolved external symbol __imp_pthread_create 6>video_data_layer.obj : error LNK2001: unresolved external symbol __imp_pthread_join 6>volume_data_layer.obj : error LNK2001: unresolved external symbol "public: class caffe::VolumeDatum * __cdecl caffe::BlockingQueue<class caffe::VolumeDatum *>::peek(void)" (?peek@?$BlockingQueue@PEAVVolumeDatum@caffe@@@caffe@@QEAAPEAVVolumeDatum@2@XZ) 6>volume_data_layer.obj : error LNK2001: unresolved external symbol "public: class caffe::VolumeDatum * __cdecl caffe::BlockingQueue<class caffe::VolumeDatum *>::pop(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?pop@?$BlockingQueue@PEAVVolumeDatum@caffe@@@caffe@@QEAAPEAVVolumeDatum@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) 6>volume_data_layer.obj : error LNK2001: unresolved external symbol "public: void __cdecl caffe::BlockingQueue<class caffe::VolumeDatum *>::push(class caffe::VolumeDatum * const &)" (?push@?$BlockingQueue@PEAVVolumeDatum@caffe@@@caffe@@QEAAXAEBQEAVVolumeDatum@2@@Z)
I suffer the bug for several hours, what's wrong with the code?
gaow0007 commented
I have done it. The bug is due to that I don't modify blocking_queue.cpp