gcc compiler error

15 views
Skip to first unread message

Rajdipsinh Solanki

unread,
Nov 30, 2013, 7:47:21 AM11/30/13
to wsf-...@googlegroups.com
Trying to run  ExampleCalculatorCustomClient., And following code gives error  

      // Build payload for Add operation
      staff::DataObject tdoPayload("Add");


Compiler error:

     src/main.cpp:24:36: error: variable ‘staff::DataObject tdoPayload’ has initializer but incomplete type
     staff::DataObject tdoPayload("Add");

I tried passing string, char array, char pointer, But with same result.


                                    ^

Dmitry Utkin

unread,
Nov 30, 2013, 12:39:33 PM11/30/13
to wsf-...@googlegroups.com
Hi,

It's very like you forgot to add

#include <staff/common/DataObject.h>

as in example.

суббота, 30 ноября 2013 г., 16:47:21 UTC+4 пользователь Rajdipsinh Solanki написал:
Reply all
Reply to author
Forward
0 new messages