Very new to Cilk

Very new to Cilk

Ichanged my main to cilk_main and got the following error:

error: ISO C++ forbids declaration of 'cilk_main' with no type

This complaint was made only after I added cilk to main to get cilk_main in my program code asI was instructed to doina previous forum post. That change in my code did get rid of a lotof errors, but created this one

I am just unsure whatis causing this and how do I get rid of it.

Newport_j

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Does your code look something like this:

int cilk_main () {
...
return 0;
}

Particularly, the error makes it sound like you're missing the "int" in front of cilk_main().

Leave a Comment

Please sign in to add a comment. Not a member? Join today