genivi-ipc@lists.genivi.org

Development list for inter process communication (IPC) related topics

View all threads

Make error CommonAPI C++ HelloWorldService.cpp

SS
Stuvart S
Mon, Feb 6, 2017 2:31 PM

hi team,

      I am following the tutorial

CommonAPI C++ D-Bus in 10 minutes (from scratch) on
https://at.projects.genivi.org/wiki/pages/viewpage.action?pageId=5472316

first of all thanks a lot for providing the same..It is really helpful
for a begginer like me..I can built HelloWorldClient.cpp without any
issue..But in the case of HelloWorldService.cpp, I am getting
following error

  1. ‘StubAttributeTable’ in namespace ‘CommonAPI::DBus’ does not name a type
    const CommonAPI::DBus::StubAttributeTable& getStubAttributeTable();

  2. conflicting return type specified for ‘virtual const bool
    v1_0::commonapi::HelloWorldDBusStubAdapterInternal::hasFreedesktopProperties
    ()’
    virtual const bool hasFreedesktopProperties();

  3. In file included from
    /home/jithin/commonapi_wrk/project/../capicxx-dbus-runtime/include/CommonAPI/DBus/DBusStubAdapterHelper.hpp:20:0,

from /home/jithin/commonapi_wrk/project/src-gen/v1_0/commonapi/HelloWorldDBusStubAdapter.hpp:21,

from /home/jithin/commonapi_wrk/project/src-gen/v1_0/commonapi/HelloWorldDBusStubAdapter.cpp:11:

/home/jithin/commonapi_wrk/project/../capicxx-dbus-runtime/include/CommonAPI/DBus/DBusStubAdapter.hpp:47:36:
error:  overriding ‘virtual bool
CommonAPI::DBus::DBusStubAdapter::hasFreedesktopProperties()’
COMMONAPI_EXPORT virtual bool hasFreedesktopProperties();

I don't know much more about this..I am a newbie in this field and
woould like to learn more about CommonAPI C++ IPC..

Hopping a reply from you guys...Thanks in advance

                    --- Come    Let's enjoy the world of Open Source  ---

Best regards,
Stuvart

hi team, I am following the tutorial CommonAPI C++ D-Bus in 10 minutes (from scratch) on https://at.projects.genivi.org/wiki/pages/viewpage.action?pageId=5472316 first of all thanks a lot for providing the same..It is really helpful for a begginer like me..I can built HelloWorldClient.cpp without any issue..But in the case of HelloWorldService.cpp, I am getting following error 1. ‘StubAttributeTable’ in namespace ‘CommonAPI::DBus’ does not name a type const CommonAPI::DBus::StubAttributeTable& getStubAttributeTable(); 2. conflicting return type specified for ‘virtual const bool v1_0::commonapi::HelloWorldDBusStubAdapterInternal::hasFreedesktopProperties ()’ virtual const bool hasFreedesktopProperties(); 3. In file included from /home/jithin/commonapi_wrk/project/../capicxx-dbus-runtime/include/CommonAPI/DBus/DBusStubAdapterHelper.hpp:20:0, from /home/jithin/commonapi_wrk/project/src-gen/v1_0/commonapi/HelloWorldDBusStubAdapter.hpp:21, from /home/jithin/commonapi_wrk/project/src-gen/v1_0/commonapi/HelloWorldDBusStubAdapter.cpp:11: /home/jithin/commonapi_wrk/project/../capicxx-dbus-runtime/include/CommonAPI/DBus/DBusStubAdapter.hpp:47:36: error: overriding ‘virtual bool CommonAPI::DBus::DBusStubAdapter::hasFreedesktopProperties()’ COMMONAPI_EXPORT virtual bool hasFreedesktopProperties(); I don't know much more about this..I am a newbie in this field and woould like to learn more about CommonAPI C++ IPC.. Hopping a reply from you guys...Thanks in advance --- Come Let's enjoy the world of Open Source --- Best regards, Stuvart