PThread problems

  • Ace
    1st May 2011 Member 0 Permalink
    1>src\main.c(1513): error C2275: 'pthread_mutexattr_t' : illegal use of this type as an expression
    1>C:\Users\Allan\programming projects\source codes\Ace's Mod\include\pthread.h(576) : see declaration of 'pthread_mutexattr_t'
    1>src\main.c(1513): error C2146: syntax error : missing ';' before identifier 'gma'
    1>src\main.c(1513): error C2065: 'gma' : undeclared identifier
    1>src\main.c(1515): error C2065: 'gma' : undeclared identifier

    I'm sure the last three errors are the result of the first, also I have not altered main.c.
  • me4502
    1st May 2011 Member 0 Permalink
    You need pthread library
  • Ace
    1st May 2011 Member 0 Permalink
    @me4502 (View Post)
    I have it and I included it, the errors are from the compiler not understanding it.
  • 888
    1st May 2011 Member 0 Permalink
    I have problem too: http://pastebin.com/iciSE4E7
    Edit: Fixed Problem
  • Ace
    1st May 2011 Member 0 Permalink
    @888 (View Post)
    No, but I've downloaded and included the pthread library.
  • Pilihp64
    1st May 2011 Developer 0 Permalink
    this is visual studio being anal about syntax
    if you move line 1513 up to.. 1322, it will work fine.