I’m a beginner in C. I’m using macOS (Sequoia) and vscode.
Let’s get to the point, I want to use zip.h
library so I installed libzip through homebrew. (brew install libzip
)
But my vscode and gcc still have not recognized zip.h
. I guess the problem is caused by environmental variables. Please give me a solution. Thanks.
<code>#include <stdio.h>
#include <zip.h> // The error occurs from here.
int main() {
printf("hello worldn");
return 0;
}
</code>
<code>#include <stdio.h>
#include <zip.h> // The error occurs from here.
int main() {
printf("hello worldn");
return 0;
}
</code>
#include <stdio.h>
#include <zip.h> // The error occurs from here.
int main() {
printf("hello worldn");
return 0;
}
5