Skip to content

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

Description

@gwiesenekker

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions