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

[BUG]: Compiler error on Ubuntu 20.04 due the missing vector header #758

Open
nate-li-parasoft opened this issue Aug 29, 2024 · 4 comments
Labels

Comments

@nate-li-parasoft
Copy link

vSomeip Version

v3.4.10

Boost Version

1.7*

Environment

Ubuntu 20.04

Describe the bug

The header file "interface/vsomeip/handler.hpp" uses the "std::vector" type without including the relative header file "". It compiles OK on higher versions of GCC on Ubuntu 22.04, but it is just pure luck.

The "handler.h" header should explicitly include to avoid relying on the implementational details of other headers.

Reproduction Steps

No response

Expected behaviour

No response

Logs and Screenshots

No response

@duartenfonseca
Copy link
Collaborator

hi @nate-li-parasoft thanks for the input.
what are the reproduction steps for this bug? building vsomeip on Ubuntu 20.04?

@nate-li-parasoft
Copy link
Author

I think the compiling error can be reproducted by compiling the project using GCC-9.

@duartenfonseca
Copy link
Collaborator

here is a log of me building vsomeip on gcc9:
logs.txt

is there any other specific characteristic of the environment that could be creating this fail? could you send logs?

@nate-li-parasoft
Copy link
Author

The compiler error appears when I tried to compile the library using javacpp(a JNI helper library).

I managed to extract the step generating the error as follows.
Put the following code inside a "test.cpp" at the root of the repository, and run command "g++ -I./interface test.cpp"

#include <vsomeip/enumeration_types.hpp>
#include <vsomeip/handler.hpp>

int main()
{
  return 1;
}

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

No branches or pull requests

2 participants