caffe_train icon indicating copy to clipboard operation
caffe_train copied to clipboard

Compilation issue (unresolved external symbols) with cpm_data_layer.

Open AntonN11 opened this issue 7 years ago • 1 comments

Hello,

I'm trying to learn how to train a caffe model using the MSCOCO images with this Caffe version. I'm following the tutorial here : https://github.com/ZheC/Realtime_Multi-Person_Pose_Estimation#training

I have a lot of linker issues (306 of them) when I compile using the extension layers in this version of Caffe, but only with cmp_data_layer. Here is an example of the : (cpm_data_layer.obj) : error LNK2019: unresolved external symbol "public: void __cdecl caffe::BlockingQueue<class caffe::Datum *>::push(class caffe::Datum * const &)" (?push@?$BlockingQueue@PEAVDatum@caffe@@@caffe@@QEAAXAEBQEAVDatum@2@@Z) referenced in function "protected: virtual void __cdecl caffe::CPMDataLayer::load_batch(class caffe::Batch *)" (?load_batch@?$CPMDataLayer@M@caffe@@MEAAXPEAV?$Batch@M@2@@Z)

Exactly here :

image

I'm on Windows 10 x64.

For some reason, the linker does not see that data_reader.hpp includes caffe/util/blocking_queue.hpp. Exactly where "::push" is declared...

Thanks for your help and have a good day,

Anthony

AntonN11 avatar Jul 07 '17 13:07 AntonN11