for loop - Cilk error expected ‘)’ before ‘;’ token -
i try compile programme using cilk don't works
g++ -std=c++11 -fcilkplus -lcilkrts -ldl -o2 src/cpp/* -o bin/exe src/cpp/sous_monoide.cpp: dans la fonction src/cpp/sous_monoide.cpp:269:19: erreur : expected ‘)’ before ‘;’ token cilk_for (i = 0; < limite; i++){ ^ src/cpp/sous_monoide.cpp:269:36: erreur : expected ‘;’ before ‘)’ token cilk_for (i = 0; < limite; i++){ ^ src/cpp/sous_monoide.cpp:312:1: erreur : expected ‘}’ @ end of input } ^ src/cpp/sous_monoide.cpp:312:1: erreur : expected ‘}’ @ end of input src/cpp/sous_monoide.cpp:312:1: erreur : expected ‘}’ @ end of input
this code :
const int limite = n-1; int i; cilk_for (i = 0; < limite; i++){ .... }
thanks help
did include cilk/cilk.h ?
#include <cilk/cilk.h>
cilk_for defined in header file. alternatively, can use _cilk_for without including header.
Comments
Post a Comment