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

Fix compliation fail Types_hpp #49

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

Conversation

phongt
Copy link

@phongt phongt commented May 12, 2024

fix the issue #47

Got the problem with yocto build same as issue 47

build/tmp/work/core2-64-poky-linux/capicxx-core-runtime/3.2.3-r7/capicxx-core-runtime-3.2.3-r7/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/phongtran/Workspace/env/poky/build/tmp/work/core2-64-poky-linux/capicxx-core-runtime/3.2.3-r7/capicxx-core-runtime-3.2.3-r7/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 { |

@shockrifleut
Copy link

We experience that same issue here, probably due to a stricter parsing in newer versions of GCC or refactoring in the GNU C++ library. At least GCC 13.2.0 shipped with Ubuntu 24.04 LTS shows the same behavior, while adding the missing include in CommonAPI/Types.hpp (as is done here in this PR) fixes this issue.

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.

2 participants