What's pbj? Looks like a third-party protobuf implementation? If so you might want to contact the authors directly; I'm not sure if they read this list.
On Tue, Jul 20, 2010 at 7:14 PM, bhupc <[email protected]> wrote: > Hi all, > I am having trouble compiling this .pbj file: > > > > > message JSFieldValue > { > optional string s_value = 1; > optional int32 i_value = 2; > optional JSMessage o_value = 3; > } > message JSField > { > required string name = 1; > optional JSFieldValue value = 2; > optional string prototype = 3; > } > > > message JSMessage > { > repeated JSField fields = 1; > } > > > > > > > I get the following build error > > Users/bhupeshchandra/s1/build/cmake/generated/JS_JSMessage.pbj.hpp:93: > error: ‘JSMessage’ does not name a type > /Users/bhupeshchandra/s1/build/cmake/generated/JS_JSMessage.pbj.hpp: > 100: error: ‘IJSMessage’ was not declared in this scope > /Users/bhupeshchandra/s1/build/cmake/generated/JS_JSMessage.pbj.hpp: > 100: error: template argument 1 is invalid > /Users/bhupeshchandra/s1/build/cmake/generated/JS_JSMessage.pbj.hpp: > In member function ‘int > Sirikata::JS::Protocol::IJSFieldValue::mutable_o_value()’: > /Users/bhupeshchandra/s1/build/cmake/generated/JS_JSMessage.pbj.hpp: > 101: error: ‘IJSMessage’ was not declared in this scope > /Users/bhupeshchandra/s1/build/cmake/generated/JS_JSMessage.pbj.hpp: > 101: error: expected `;' before ‘retval’ > /Users/bhupeshchandra/s1/build/cmake/generated/JS_JSMessage.pbj.hpp: > 102: error: ‘retval’ was not declared in this scope > make[3]: *** [CMakeFiles/scripting-js.dir/Users/bhupeshchandra/s1/ > liboh/plugins/js/JSObjectScriptManager.o] Error 1 > make[2]: *** [CMakeFiles/scripting-js.dir/all] Error 2 > > > I want something like a forward declaration..not able to do it. Does > anyone have any idea on this? > > > Thanks, > Bhupesh > > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<protobuf%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/protobuf?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
