Skip to content

Compilation issue (unresolved external symbols) with cpm_data_layer. #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
AntonN11 opened this issue Jul 7, 2017 · 1 comment
Open

Comments

@AntonN11
Copy link

AntonN11 commented Jul 7, 2017

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
Copy link
Author

AntonN11 commented Jul 7, 2017

I found out why... I removed some code in blocking_queue.cpp.
Exactly what was causing my unresolved external symbols.

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant