#include <google/protobuf/io/coded_stream.h>
namespace google::protobuf::io
....
int fd = open("myfile", O_WRONLY);
ZeroCopyOutputStream* raw_output = new FileOutputStream(fd);
CodedOutputStream* coded_output = new CodedOutputStream(raw_output);
The above is following the tutorial here, but when I compile get the following errors:
error C2061: syntax error : identifier 'io'
What can be wrong here?
UPDATE
When I changed the above to using namespace google::protobuf::io;
I get a new error saying the symbol FileOutputStream
is not defined, how come?