Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

I'm getting symbol _cilk_spawn could not be resolved when compiling with icpc

amit_l_
Beginner
434 Views

Hi,

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

0 Kudos
3 Replies
TimP
Honored Contributor III
434 Views

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.

0 Kudos
amit_l_
Beginner
434 Views

Why do I need to update  LD_LIBRARY_PATH is I cant compile it via icc without any change ?

0 Kudos
TimP
Honored Contributor III
434 Views

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.

0 Kudos
Reply