This is the mail archive of the pthreads-win32@sources.redhat.com mailing list for the pthreas-win32 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

compilation problem under windows 2000, using metrowerks mwcc Version 2.4.5 build 199 ()


hello,

I am compiling a cpp file which is #include ing the semaphore.h header, and 

it gives me:

    [apply] ..\..\PTHREADS\Pre-built\include\semaphore.h:93: declaration
syntax error
    [apply] ..\..\PTHREADS\Pre-built\include\semaphore.h:94: declaration
syntax error 

errors.

There are two quick fixes for that stuff:

the first one is to replace 

#ifdef HAVE_MODE_T 
typedef unsigned int mode_t; 
#endif


by 

#ifdef WIN32 
typedef unsigned int mode_t; 
#endif

the second one is to 

#define HAVE_MODE_T in the files #include'ing semaphore.h

any ideas why this happens?

thanks,

Stan.

Stanislas Pinte - Associate Software Engineer.

Phone: +32-(0)15-401.371 
Fax: +32-(0)15-401.400
Address: Schaliënhoevedreef 20i, B-2800 Mechelen, Belgium


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]