-
Notifications
You must be signed in to change notification settings - Fork 263
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
included string.h but still see "implicitly declaring library function 'memcpy'" #512
Comments
Ok. I found a solution, I think it may affect other macOS users with more recent OSs.
or
So I fix the issue by adding Not only that, but I also need the fix in #191 (comment) |
@randy3k Your solution here helps me a lot, Thank you! I've been struggling on Catalina 15.2 for nearly two days! |
Does https://github.com/MaskRay/ccls/wiki/Build#macos include all the information now? (It is publicly editable BTW) |
@MaskRay I suppose it's a MacOS Catalina only problem, I've updated the wiki page you posted with a tip, hoping it could help somebody in the future. |
For those whom run into this error and find this page via google, |
I am using Sublime Text LSP in macOS.
The c file
Diagnostic
When I check the ccls log file, I could see string.h is indexed.
But having a closer look of the
string.h
, it doesn't contain the definiation ofmemcpy
but the following derivativeDoes it mean that ccls is not following the
#include_next
derivative? I cannot see otherstring.h
file being indexed except/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string.h
.Please let me know if you need more information.
The text was updated successfully, but these errors were encountered: