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

Update Types.hpp #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update Types.hpp #56

wants to merge 1 commit into from

Conversation

IT-magician
Copy link

this can solve the error on the environment of Ubuntu 24.04

 this can solve the error on the environment of Ubuntu 24.04
@IT-magician
Copy link
Author

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

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

Successfully merging this pull request may close these issues.

1 participant