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

Build error where memcpy is not declared in scope #985

Closed
idarb-oss opened this issue Sep 21, 2021 · 0 comments · Fixed by #987
Closed

Build error where memcpy is not declared in scope #985

idarb-oss opened this issue Sep 21, 2021 · 0 comments · Fixed by #987
Labels
bug Something isn't working

Comments

@idarb-oss
Copy link
Contributor

Describe your environment
Devcontainer with ubuntu 21.04, cmake 3.21.2 , GCC 9.3.0 and with CPM as dependency manager.

Steps to reproduce
Building application with BaggagePropagator cause opentelemetry build error where memcpy is not declared in scope.

In file included from /workspaces/<project_name>/build/_deps/opentelemetry-cpp-src/api/include/opentelemetry/baggage/baggage.h:8,

from /workspaces/<project_name>/build/_deps/opentelemetry-cpp-src/api/include/opentelemetry/baggage/propagation/baggage_propagator.h:6,

from /workspaces/<project_name>/standalone/source/main.cpp:3:
/workspaces/<project_name>/build/_deps/opentelemetry-cpp-src/api/include/opentelemetry/common/kv_properties.h: In member function 'opentelemetry::v1::nostd::unique_ptr<const char []> opentelemetry::v1::common::KeyValueProperties::Entry::CopyStringToPointer(opentelemetry::v1::nostd::string_view)':
/workspaces/<project_name>/build/_deps/opentelemetry-cpp-src/api/include/opentelemetry/common/kv_properties.h:191:7: error: 'memcpy' was not declared in this scope

What is the expected behavior?
Able to build the project :)

What is the actual behavior?
Error

Additional context

@idarb-oss idarb-oss added the bug Something isn't working label Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant