0

Im using Ubuntu 14.04 & eclipse & intel compiler v 15

I have 2 same programs (which use cilk commands) (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 it

user3668129
  • 4,318
  • 6
  • 45
  • 87

1 Answers1

1

The keyword is "_Cilk_spawn", with a capital "C". The C/C++ convention is for non-standard extensions to have a leading underscore and start with a capital letter.

You can also include cilk.h which defines macros to allow you to use "cilk_spawn", "cilk_sync" and "cilk_for".