Anyone seen this error before? CUDA + existing code, error after removing pthread

Hi,

I am revising a program that originally used pthread to CUDA. I’ve removed all the pthreads but is getting this error when I ‘make’

In file included from template.cu:409:

/usr/include/c++/4.2/x86_64-linux-gnu/bits/gthr-default.h:96: error: âint __gthrw_pthread_cancel(pthread_t)â used but never defined

What I’ve done so far is copying main.cpp to template.cu, extern all the C++ functions, and removing usage of pthread.

Have anyone encountered this error before?

Thanks!

Dinh

I think there is something of pthreads still there!! And probably the header file that the compiler shows is suspicious! Since it says “used but never defined” there must be something that you use but haven’t defined!! Check your code again for leftovers!

Thanks, I don’t have this error anymore after I scratched everything and started over again.

Hi

Can you tell me exactly what you have done to solve this compilation error?

I encunter the same error when I add my own code (& class) to handle a glut menu event.

Thanks in advance

Zvika