This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: linux compiler


On Tue, Jun 26, 2001 at 03:34:54PM +0200, Kepa Iddeo wrote:
> Thank you for your reply Jeff,
> 
> the compiler command works except for these lines, that won´t compile:
>     pthread_rwlockattr_t m_attr;
>     pthread_rwlock_t m_rwlock;
>     int pthread_rwlockattr_init(...)
> 
> If you have any solution for this problem I would be much obliged.

pthread_rwlock_t etc. are part of Unix98 specification, so you should
either use:
-D_XOPEN_SOURCE=500 (or 600), or -D_GNU_SOURCE
Note this has nothing to do with g++.

	Jakub


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