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

Add #include <stdlib.h> to examples #100

Closed
RikkiButler20 opened this issue Jul 13, 2021 · 2 comments · Fixed by #101
Closed

Add #include <stdlib.h> to examples #100

RikkiButler20 opened this issue Jul 13, 2021 · 2 comments · Fixed by #101
Labels

Comments

@RikkiButler20
Copy link

I get this warning when I try to compile any of the examples.

 warning: incompatible implicit declaration of built-in function 'malloc'
     double *a = (double *)malloc(sizeof(double)*num);

I was able to fix it by adding #include <stdlib.h> to the examples

@shintaro-iwasaki
Copy link
Collaborator

Thanks, @RikkiButler20! I will fix the example.

This was referenced Jul 14, 2021
@shintaro-iwasaki shintaro-iwasaki linked a pull request Jul 14, 2021 that will close this issue
@shintaro-iwasaki
Copy link
Collaborator

Fixed. Thank you for reporting an issue!

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

Successfully merging a pull request may close this issue.

2 participants