Problem with pthread - EBUSY

Guru Silva pedro_manuel_silva@hotmail.com
Fri Apr 3 22:13:00 GMT 2009


Indeed, I was missing that include. My bad :S 
Thank you :)


Ian Lance Taylor-3 wrote:
> 
> 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
> 
> 

-- 
View this message in context: http://www.nabble.com/Problem-with-pthread---EBUSY-tp22871393p22877325.html
Sent from the gcc - Help mailing list archive at Nabble.com.



More information about the Gcc-help mailing list