public inbox for pthreads-win32@sourceware.org
 help / color / mirror / Atom feed
* RE: compilation problem under windows 2000, using metrowerks mwcc Ver sion 2.4.5 build 199 ()
@ 2002-06-26  6:36 Pinte_Stanislas
  0 siblings, 0 replies; 2+ messages in thread
From: Pinte_Stanislas @ 2002-06-26  6:36 UTC (permalink / raw)
  To: pthreads-win32

I figured out the reason:

I compiled using the -gccincludes option.

withing the gcc includes, there is a mode_t type already defined...

So for the best, the variable name could be renamed to something unique to
the pthreads_win32...

Stan.

-----Original Message-----
From: Pinte_Stanislas@emc.com [mailto:Pinte_Stanislas@emc.com]
Sent: woensdag 26 juni 2002 14:44
To: pthreads-win32@sources.redhat.com
Subject: compilation problem under windows 2000, using metrowerks mwcc
Ver sion 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* compilation problem under windows 2000, using metrowerks mwcc Ver sion 2.4.5 build 199 ()
@ 2002-06-26  5:46 Pinte_Stanislas
  0 siblings, 0 replies; 2+ messages in thread
From: Pinte_Stanislas @ 2002-06-26  5:46 UTC (permalink / raw)
  To: pthreads-win32

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-26 13:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-26  6:36 compilation problem under windows 2000, using metrowerks mwcc Ver sion 2.4.5 build 199 () Pinte_Stanislas
  -- strict thread matches above, loose matches on Subject: below --
2002-06-26  5:46 Pinte_Stanislas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).