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

fixed the error in utils.c by including stdio.h library #2

Merged
merged 1 commit into from
Mar 15, 2021
Merged

Conversation

0jk6
Copy link
Contributor

@0jk6 0jk6 commented Mar 15, 2021

Got the following error while running make on WSL2 Ubuntu

[ C ] src/utils.c src/utils.c:34:5: error: implicitly declaring library function 'printf' with type 'int (const char *, ...)' [-Werror,-Wimplicit-function-declaration] printf("error: lsr_c is not implemented \n"); ^ src/utils.c:34:5: note: include the header <stdio.h> or explicitly provide a declaration for 'printf' 1 error generated. Makefile:27: recipe for target 'build/./src/utils.o' failed make: *** [build/./src/utils.o] Error 1

It can be fixed just by including the stdio.h in the utils.c file or by explicitly declaring the printf function. I included the stdio.h library in utils.c and everything worked fine.

@Supercip971
Copy link
Owner

Thanks <3

@Supercip971 Supercip971 merged commit 159c71e into Supercip971:main Mar 15, 2021
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