This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: linux compiler
- To: Kepa Iddeo <kepa dot larizgoitia at era-e dot com>
- Subject: Re: linux compiler
- From: Jakub Jelinek <jakub at redhat dot com>
- Date: Tue, 26 Jun 2001 15:44:42 +0200
- Cc: gcc at gcc dot gnu dot org
- References: <020401c0fe44$c8d3f860$860310ac@Kepa>
- Reply-To: Jakub Jelinek <jakub at redhat dot com>
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