question : copy an array to constant memory

I want to copy an array in host memory to constant memory.

I have declared an constant array in host code, and using

cudaMemcopyToSymbol() copy to constant memory.

ex:

fun()
{
vecotor1[256];
constant float* d_vector1[256];
cudaMemcopyToSymbol(d_vector1 , vector1 , data_size);
}

i got the following error message :

  1. a function scope variable cannot be declared with.
  2. identifier"cudaMemcopyToSymbol" is undefined.

I hope one who have had the experiance copy data to constant memory can tell me what to do. thanks. :)

buddy, you have to check spellings at first:) cudaMemcopyToSymbol 's “o” is redundant

ooop ~ ,“o” my God!! very thank you ^^.