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

use of undeclared identifier 'strdup' #31

Closed
rvangraan opened this issue Dec 4, 2024 · 1 comment
Closed

use of undeclared identifier 'strdup' #31

rvangraan opened this issue Dec 4, 2024 · 1 comment

Comments

@rvangraan
Copy link

When I try to compile any of the swift-matter examples, I run into the following error that I have no idea how to resolve.

Any suggestions? This is using the current HEAD version of this repo targeting esp32c6.

/Users/U/esp/esp-matter/components/esp_matter/esp_matter_client.h:57:26: error: use of undeclared identifier 'strdup'
 55 |     {
 56 |         if (json_str) {
 57 |             m_json_str = strdup(json_str);
    |                          `- error: use of undeclared identifier 'strdup'
 58 |         } else {
 59 |             if (usage == k_invoke_cmd) {
@kubamracek
Copy link
Collaborator

Resolved via #32

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

No branches or pull requests

2 participants