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

implicit declaration of function 'asm' is invalid in C99 #187

Open
ishankhare07 opened this issue Dec 27, 2019 · 0 comments
Open

implicit declaration of function 'asm' is invalid in C99 #187

ishankhare07 opened this issue Dec 27, 2019 · 0 comments

Comments

@ishankhare07
Copy link

ishankhare07 commented Dec 27, 2019

I get the following error when running the first code example.

#define MILL_USE_PREFIX
#include <stdio.h>
#include <libmill.h>

mill_coroutine void worker(int count, char *text) {
	int i;
	for(i = 0; i != count; i++) {
		printf("%s\n", text);
		mill_msleep(mill_now() + 10);
	}
}

int main() {
	mill_go(worker(4, "a"));
	mill_go(worker(2, "b"));
	mill_go(worker(3, "c"));
	mill_msleep(mill_now() + 100);
	return 0;
}

compiling with
clang -Wall -o main main.c -lmill

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