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

cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' #162

Closed
4ll0w3v1l opened this issue Oct 10, 2024 · 2 comments · Fixed by #163
Closed
Assignees

Comments

@4ll0w3v1l
Copy link

when trying to install with

git clone 'https://github.com/datadog/dd-trace-cpp'
cd dd-trace-cpp
cmake -B build .
cmake --build build -j

cmake --build build -j throws cannot initialize a variable of type 'char *' with an rvalue of type 'const char *'
here dd-trace-cpp/src/datadog/platform_util.cpp:194:9

@4ll0w3v1l
Copy link
Author

4ll0w3v1l commented Oct 10, 2024

nvm, fixed it with changing
from char* process_name = getprogname(); to auto process_name = getprogname();

@dmehala
Copy link
Collaborator

dmehala commented Oct 10, 2024

Hey @4ll0w3v1l

It's potentially still an issue for other users :)

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 a pull request may close this issue.

2 participants