About build Embedding_lookup.cc

I’m trying to find an equivalent of embedding_lookup in Caffe2 built in VS2015.
Seems there is a C++ interface, but the compiler couldn’t compile it successfully because ’ caffe2::DeviceTypeProto’ is not defined and I found it in caffe.proto but didnt know how to include caffe.proto .
Could u tel me ? thanks.