Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

multithread in c

  • 29-10-2009 8:07am
    #1
    Registered Users, Registered Users 2 Posts: 1,190 ✭✭✭


    Using dev c++
    have a c project, pthread.h is coming up not found. I added in -lpthread to linker (not sure if that was what was required or not) and still not working. Anyone got any ideas.

    I don't even have to use pthread, any multithreading lib will do.


Comments

  • Registered Users, Registered Users 2 Posts: 981 ✭✭✭fasty


    pthreads are not native to Windows Try searching online for pthreads-win32 although I don't think it has been updated in a long time.


  • Registered Users, Registered Users 2 Posts: 2,013 ✭✭✭lynchie


    wolfric wrote: »
    Using dev c++
    have a c project, pthread.h is coming up not found. I added in -lpthread to linker (not sure if that was what was required or not) and still not working. Anyone got any ideas.

    I don't even have to use pthread, any multithreading lib will do.

    Adding it to the linker will only allow the compiler to find the .lib file during linking. You need to add the folder where the header files are to your include path so the compiler can find it


Advertisement