Error: forward declaration of ‘struct google::protobuf::io::CodedInputStream’

95 views
Skip to first unread message

Cayo Fontana

unread,
Feb 21, 2014, 8:11:44 AM2/21/14
to prot...@googlegroups.com
Hi there,

I am compiling a project on Ubuntu 12.04 LTS using the API google protobuf, and I'm having the problems below:

In file included from /home/cayo/Downloads/rodrigob-doppia-ba2f818c30cb/src/helpers/data/DataSequence.cpp:1:0:
/home/cayo/Downloads/rodrigob-doppia-ba2f818c30cb/src/helpers/data/DataSequence.hpp: In member function ‘void doppia::DataSequence<DataType>::init(std::string, std::ios_base::openmode, const attributes_t&)’:
/home/cayo/Downloads/rodrigob-doppia-ba2f818c30cb/src/helpers/data/DataSequence.hpp:155:77: error: invalid use of incomplete type ‘struct google::protobuf::io::CodedInputStream’
/usr/local/include/google/protobuf/message_lite.h:48:9: error: forward declaration of ‘struct google::protobuf::io::CodedInputStream’
/home/cayo/Downloads/rodrigob-doppia-ba2f818c30cb/src/helpers/data/DataSequence.hpp:167:80: error: invalid use of incomplete type ‘struct google::protobuf::io::CodedOutputStream’

I'm using the 2.5.0 version of this API.

Anyone help me?
Thank you!
Reply all
Reply to author
Forward
0 new messages