capicxx-core-runtime icon indicating copy to clipboard operation
capicxx-core-runtime copied to clipboard

Update Types.hpp

Open IT-magician opened this issue 1 year ago • 1 comments

this can solve the error on the environment of Ubuntu 24.04

IT-magician avatar Dec 23 '24 11:12 IT-magician

the error message

[ 18%] Building CXX object CMakeFiles/CommonAPI.dir/src/CommonAPI/CallInfo.cpp.o
In file included from /home/ubuntu/someip/capicxx-core-runtime/include/CommonAPI/Config.hpp:13,
                 from /home/ubuntu/someip/capicxx-core-runtime/include/CommonAPI/CallInfo.hpp:13,
                 from /home/ubuntu/someip/capicxx-core-runtime/src/CommonAPI/CallInfo.cpp:6:
/home/ubuntu/someip/capicxx-core-runtime/include/CommonAPI/Types.hpp:113:40: error: return type ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’} is incomplete
  113 |     virtual std::string getEnv() const {
      |                                        ^
/home/ubuntu/someip/capicxx-core-runtime/include/CommonAPI/Types.hpp:116:48: error: return type ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’} is incomplete
  116 |     virtual std::string getHostAddress() const {
      |                                                ^
make[2]: *** [CMakeFiles/CommonAPI.dir/build.make:90: CMakeFiles/CommonAPI.dir/src/CommonAPI/CallInfo.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/CommonAPI.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

IT-magician avatar Dec 23 '24 11:12 IT-magician

Hi! Is there any plans to merge this?

vvvar avatar Aug 12 '25 09:08 vvvar