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 a missing include of <stdio.h> #18

Merged
merged 1 commit into from
Oct 8, 2019
Merged

Conversation

stolyaroleh
Copy link
Contributor

Fixes the following error when building with Clang 9 and libc++ on Linux:

clang++  -O2 -std=c++14  -o build/src/Allocator.o -c src/Allocator.cpp
src/Allocator.cpp:45:13: error: use of undeclared identifier 'printf'
            printf("ERROR: failed to allocate %zu bytes via mmap\n", count);
            ^
1 error generated.

Fixes the following error when building with Clang 9 and libc++ on Linux:

```
clang++  -O2 -std=c++14  -o build/src/Allocator.o -c src/Allocator.cpp
src/Allocator.cpp:45:13: error: use of undeclared identifier 'printf'
            printf("ERROR: failed to allocate %zu bytes via mmap\n", count);
            ^
1 error generated.
```
@stolyaroleh
Copy link
Contributor Author

Relevant: #12 (comment)

@aras-p aras-p merged commit 5187657 into aras-p:master Oct 8, 2019
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.

None yet

2 participants