vsomeip
vsomeip copied to clipboard
[BUG]: Compiler error on Ubuntu 20.04 due the missing vector header
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 "
The "handler.h" header should explicitly include
Reproduction Steps
No response
Expected behaviour
No response
Logs and Screenshots
No response
hi @nate-li-parasoft thanks for the input. what are the reproduction steps for this bug? building vsomeip on Ubuntu 20.04?
I think the compiling error can be reproducted by compiling the project using GCC-9.
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?
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;
}
should be fixed with latest sw