COVESA / capicxx-someip-tools

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

Compilation error for CommonAPI-SomeIP #6

Closed elvin03 closed 1 year ago

elvin03 commented 4 years ago

I would like to raise an issue where i have a compilation error. I tried to compile CommonAPI-SomeIP and i get this error below.

Scanning dependencies of target CommonAPI-SomeIP [ 5%] Building CXX object CMakeFiles/CommonAPI-SomeIP.dir/src/CommonAPI/SomeIP/Address.cpp.o [ 10%] Building CXX object CMakeFiles/CommonAPI-SomeIP.dir/src/CommonAPI/SomeIP/AddressTranslator.cpp.o [ 15%] Building CXX object CMakeFiles/CommonAPI-SomeIP.dir/src/CommonAPI/SomeIP/ClientId.cpp.o [ 21%] Building CXX object CMakeFiles/CommonAPI-SomeIP.dir/src/CommonAPI/SomeIP/Connection.cpp.o [ 26%] Building CXX object CMakeFiles/CommonAPI-SomeIP.dir/src/CommonAPI/SomeIP/DispatchSource.cpp.o [ 31%] Building CXX object CMakeFiles/CommonAPI-SomeIP.dir/src/CommonAPI/SomeIP/Factory.cpp.o /home/v2x/testwork/capicxx-someip-runtime/src/CommonAPI/SomeIP/Factory.cpp:23:14: error: expected constructor, destructor, or type conversion before ‘(’ token DEINITIALIZER(FactoryDeinit) { ^ /home/v2x/testwork/capicxx-someip-runtime/src/CommonAPI/SomeIP/Factory.cpp:440:1: error: expected ‘}’ at end of input } // namespace CommonAPI ^ /home/v2x/testwork/capicxx-someip-runtime/src/CommonAPI/SomeIP/Factory.cpp:440:1: error: expected ‘}’ at end of input CMakeFiles/CommonAPI-SomeIP.dir/build.make:182: recipe for target 'CMakeFiles/CommonAPI-SomeIP.dir/src/CommonAPI/SomeIP/Factory.cpp.o' failed make[2]: [CMakeFiles/CommonAPI-SomeIP.dir/src/CommonAPI/SomeIP/Factory.cpp.o] Error 1 CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/CommonAPI-SomeIP.dir/all' failed make[1]: [CMakeFiles/CommonAPI-SomeIP.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2

The version that I am using is :- CommonAPI – 3.1.12.6 (latest) vsomeip - 2.14.16 (latest)

lutzbichler commented 3 years ago

Which platform/compiler is this?