Nsight eclipse version does not recognize thrust namespace problem with compile

Hi there

I installed cuda 5 and testing nsight eclipse version.

I created a new project and imported the “particles” project from SDK, then I add the C/common/include directory for the project in properties.

But when i compile, it seems that the program can not recognize thrust namespace, every line that with thrust have several error like:

  1. expected an identifier
  2. name followed by “::” must be a class or namespace name
  3. expected a “;”

An example of such a line is like:
volatile float4 posData = thrust::get<0>(t);

Can anyone tell me how to fix this?

When you made your project did you choose “Thrust Project” as your project type? I’ve never tried it myself or anything but that seems like it should work. You’re probably just missing an include or header file somewhere.

Can you paste make output from the Console view?

I do not see “get” template in the thrust namespace. What header is it defined in?