Istarted to cilkify my program with an error serial program. I took the line that said
and changed it to
I also aded the include file
cilk.h this way
Iadded the line at the bottom of my include file list for the main function. I am not sure why I must precede it by
,but I did.
I then got the error
ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crtl1.o(.debug_info): relocation 0 has invalid symbol index 12
several more lines similar
/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/../../crtl.o: In function " _start':
(.text+ox18): undefined reference to "main"
I did not change any file extensions from *.c to *.cilk.I am usng icc and it compiles all files with a c extension fine.
The compiler seems to believe that i do not have a main function. I changed theint main() to int cilk_main().
When I compiled I got the output that I listed above. What did I do wrong? I did everything that it said to do on the Cilk++ Programmers Guide.
Thanks in advance.