How do I use my standard linker to do the final link for a mixed
C++/Cilk program?
Here I have
foo.o compiled from foo.cilk by cilk++
bar.o compiled from bar.c++ (with a call to cilk::run) by cilk++
If I do the final link with cilk++ it works.
If I do the final link with g++ it doesn't. I tried
$ /home/bradley/cilkarts/8503/cilk/bin/c++ foo2.o bar2.o -o broken-lpthread-L/home/bradley/cilkarts/8503/cilk/lib64 -lcilkrts-Wl,-rpath=/home/bradley/cilkarts/8503/cilk/lib64
$ ./broken
and get a segfault.
What's the magic to linking with cilk? I need to know so that I can link with., e.g., icc.
-Bradley


