This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: help with error?
I got the code from the web so I'm not sure what the author might
have truly meant, a fix was to change it to 0, but I'm not sure if the
program
works as it is meant.
Nellis, Kenneth-2 wrote:
>
>> From: Afflictedd2
>> Sent: Thursday, January 21, 2010 20:57
>> To: cygwin@cygwin.com
>> Subject: help with error?
>>
>>
>> Hi everyone,
>>
>> I am having the following errors when compiling with cygwin.
>> It complains on this line of code:
>>
>> while ( context->holder != '' ) {
>>
>> /usr/bin/g++ -c -g -o "Debug/prodcon.o" "prodcon.c"
>> prodcon.c:129:32: error: empty character constant
>> prodcon.c: In function ÃâËvoid* producer(void*)Ãââ:
>> prodcon.c:103: error: expected `;' before ÃâËsizeofÃââ
>> prodcon.c:103: error: expected `)' before ÃâË;Ãââ token
>> prodcon.c:103: error: expected `;' before ÃâË)Ãââ token
>> prodcon.c:147: error: expected `}' at end of input
>> make: *** [Debug/prodcon.o] Error 1
>>
>> How do I fix this?
>> --
>> View this message in context: http://old.nabble.com/help-with-error--
>> tp27266461p27266461.html
>> Sent from the Cygwin list mailing list archive at Nabble.com.
>
> '' is not a valid character constant. Did you mean "" ?
> --Ken Nellis
>
>
--
View this message in context: http://old.nabble.com/help-with-error--tp27266461p27273392.html
Sent from the Cygwin list mailing list archive at Nabble.com.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple