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

Error on 'rewind' when compiling '0_fgets' #4

Open
gwiesenekker opened this issue Dec 19, 2022 · 0 comments
Open

Error on 'rewind' when compiling '0_fgets' #4

gwiesenekker opened this issue Dec 19, 2022 · 0 comments

Comments

@gwiesenekker
Copy link

I am getting the following error when compiling '0_fgets' on Linux:

gcc main.c c-embed.o -include ../../c-embed.h -DCEMBED_TRANSLATE -o main
In file included from :
./../../c-embed.h:177:6: error: conflicting types for ‘rewind’
177 | void rewind(EFILE* e){
| ^~~~~~
In file included from ./../../c-embed.h:14,
from :
/usr/include/stdio.h:694:13: note: previous declaration of ‘rewind’ was here
694 | extern void rewind (FILE *__stream);
| ^~~~~~
make: *** [makefile:19: build] Error 1

Looking at c-embed.h I guess 'rewind' should be renamed to 'erewind'?

Regards,
GW

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

No branches or pull requests

1 participant