Intel® Cilk™ Plus Runtime Library cilkrts20.dll/libcilkrts.so Can Only be Linked Dynamically

Code that uses the cilk_spawn, cilk_sync, cilk_for keywords or the reducer classes from Intel® Cilk™ Plus will be required to link against the cilkrts20.dll on Windows* or the libcilkrts.so on Linux*.  There is no static library version of the runtime.  Note that using -static or -fast (which implies -static) on Linux* with this code will result in linker errors.

For an explanation of the problems associated with using a static runtime of a threading library like Cilk Plus or Intel® Threading Building Blocks, see the article at http://threadingbuildingblocks.org/wiki/index.php?title=Using_TBB#Is_there_a_version_of_TBB_that_provides_statically_linked_libraries.3F.

有关编译器优化的更完整信息,请参阅优化通知