COVESA / capicxx-someip-tools

Common API C++ SOMEIP tooling
Mozilla Public License 2.0
75 stars 55 forks source link

to use 3.2.14 or master code to generate code, when compile XXXSomeIPStubAdapter.cpp it says compiling error #51

Open biggoldenbee opened 2 months ago

biggoldenbee commented 2 months ago

when use 3.2.14 or master code to generate code, when compile XXXSomeIPStubAdapter.cpp it says compiling error, as below:

/home/v2x/workspace/joynext/jvs-oi/fidl/src-gen/v1/commonapi/v2x/V2XStackServiceSomeIPStubAdapter.cpp:33:106: required from here

*_/usr/include/c++/11/ext/new_allocator.h:162:11: error: no matching function for call to ‘CommonAPI::SomeIP::ClientId::ClientId()’ 162 | { ::new((void )p) _Up(std::forward<_Args>(args)...); }_**

and compared the FInterfaceSomeIPStubAdapterGenerator.xtend of 3.2.0 with the FInterfaceSomeIPStubAdapterGenerator.xtend of 3.2.14 or master, the code is difference:

line 196 of the FInterfaceSomeIPStubAdapterGenerator.xtend of 3.2.0 is std::shared_ptr<CommonAPI::SomeIP::ClientId> itsClient = std::make_shared<CommonAPI::SomeIP::ClientId>(0xFFFF, 0xFFFFFFFF, 0xFFFFFFFF);

but line 196 of the FInterfaceSomeIPStubAdapterGenerator.xtend of 3.2.0 and master is std::shared_ptr<CommonAPI::SomeIP::ClientId> itsClient = std::make_shared<CommonAPI::SomeIP::ClientId>();

So, I think this is an potential issue of the SomeIP generate tool

dibpinto commented 2 months ago

Please try to use the most recent version of capicxx-someip-runtime and let me know if you still have the same issue