Im using Ubuntu 14.04 & eclipse & intel compiler v 15
I have 2 same cilk programs (one with as c program and the other as cpp program).
I can compile it with icc (without any problem)
But when I'm using icpc (cpp program) I'm getting errors: symbol _cilk_spawn could not be resolved
In those same 2 programs Im not using any flags.
What is the different with cpp program, which I cant compile
If you're getting a run time error associated with not finding cilk runtime shared object, the suspicion would be that you neglected to source the compilervars script to set up LD_LIBRARY_PATH or take some alternative action.
Supposing that you built with -static-intel or -static, cilk runtime may be the only shared object you require from the icc library, so you would require it only to support those cilk functions. Parallel runtime libraries are the main exception to the rule of icc providing both static and dynamic versions of its libraries.