langroodi / Adaptive-AUTOSAR

Adaptive Runtime AUTOSAR Linux Simulator
MIT License
397 stars 159 forks source link

error: variable cExpectedResult’ has initializer but incomplete type #34

Closed JackChen080808 closed 5 months ago

JackChen080808 commented 5 months ago

/home/jack/codebase/Adaptive-AUTOSAR/build/_deps/doip-lib-src/test/routing_activation_request_test.cpp: In member function ‘virtual void DoipLib::RoutingActivationRequestTest_SerializationWithoutOemData_Test::TestBody()’: /home/jack/codebase/Adaptive-AUTOSAR/build/_deps/doip-lib-src/test/routing_activation_request_test.cpp:14:51: error: variable ‘const std::array<unsigned char, 15> cExpectedResult’ has initializer but incomplete type 14 | const std::array<uint8_t, cPayloadLength> cExpectedResult{

The info aboval shows the detail of the error. Please help give solution.

THanks Jack

JackChen080808 commented 5 months ago

the compiler is gcc 13.2.0

langroodi commented 5 months ago

The error is not related to this project but the DoIP-Lib project. Because the mentioned compiler is not supported, I only can assume that including <array> header at routing_activation_request_test.cpp in that project may solve the issue. Further than that, I cannot help anymore.

JackChen080808 commented 5 months ago

Yes, it belongs to DoIP project. Thanks a lot for support and help. Although it seems not to work with including

JackChen080808 commented 5 months ago

with include array.