lion03 / thrust

Automatically exported from code.google.com/p/thrust
Apache License 2.0
0 stars 0 forks source link

Homepage's examples yield a compilation error #362

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I compiled the two examples from the homepage.  Just straight cut and paste.

   http://code.google.com/p/thrust/

For both programs, I get an error "invalid application of 'sizeof' to 
incomplete type".  Full output is attached.  I tried this on two different 
machines,

   nvcc version 4.0, V0.2.1221
   g++ (Ubuntu/Linaro 4.4.5-15ubuntu1) 4.4.5

   nvcc version 4.0, V0.2.1221
   g++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-50)

Original issue reported on code.google.com by stoneret...@gmail.com on 23 Aug 2011 at 6:03

Attachments:

GoogleCodeExporter commented 8 years ago
Copy and paste the code into a file with a .cu extension and compile with nvcc.

Original comment by jaredhoberock on 23 Aug 2011 at 6:05