Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
biggoldenbee opened this issue Jun 5, 2024 · 1 comment

Comments

@biggoldenbee
Copy link

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants