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

By including <stdio.h> it is not defined fflush neither stdout #5

Open
arteze opened this issue Jun 23, 2021 · 0 comments
Open

By including <stdio.h> it is not defined fflush neither stdout #5

arteze opened this issue Jun 23, 2021 · 0 comments

Comments

@arteze
Copy link

arteze commented Jun 23, 2021

main.c

#include <stdio.h>

int main(int argc, char **argv){
    int i=0;
    while(i<1000000){
        printf("\r%i",i);
        fflush(stdout);
	i=i+1;
    }
    printf("\n");
    return 0;
}

Compiling:

mcc ./main.c

Errors:

mcc ./main.c 
./main.c:7: error: no symbol 'fflush' declared
./main.c:7: error: no symbol 'stdout' declared

There is some equivalence to do this?

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