This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with pthread - EBUSY
- From: Ian Lance Taylor <iant at google dot com>
- To: Guru Silva <pedro_manuel_silva at hotmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 03 Apr 2009 12:17:59 -0700
- Subject: Re: Problem with pthread - EBUSY
- References: <22871393.post@talk.nabble.com>
Guru Silva <pedro_manuel_silva@hotmail.com> writes:
> I'm trying to compile some code(with pthread.h included) where I test a
> trylock return against the variable EBUSY. Although, when compiling with
>
> -c -g -ansi -Wall -pedantic
>
> I get the following error,
>
> error: âEBUSYâ undeclared (first use in this function)
>
> (gcc -dumpversion = 4.3.3 @ ubuntu jaunty - 2.6.28-11-generic)
Did you #include <errno.h>?
If you did, show us the source code, the exact command that you typed,
and the exact output that it generated.
Ian