[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pan-devel] Re: Ping K.Haley: latest testing br anch updates, I get com

From: K. Haley
Subject: [Pan-devel] Re: Ping K.Haley: latest testing br anch updates, I get compiler error in line 742 : ‘_close’ not declared.
Date: Mon, 18 Oct 2010 18:09:33 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20100915 Thunderbird/3.1.4

 On 10/17/2010 9:21 AM, walt wrote:
> On 10/17/2010 03:48 AM, SciFi wrote:
>> Now I am getting a compiler error:
>>> In member function ‘void pan::PostUI::spawn_editor()’:
>>> error: ‘_close’ was not declared in this scope
> Here are the two relevant added lines from K.Haley's patch:
> +#include <unistd.h>
> +      _close(fd);
> Grepping through unistd.h, I find the function 'close(fd)' but not
> '_close(fd)', so I'm assuming for the moment that the underscore is
> a typo.
It's not a typo.  Non-standard names like close are supposed to have an
_ prefix.  My headers have both versions  I changed it when I was
testing with the --std=c++0x option which disables such names.

By the way, is the xface handling correct?  I can't tell if the colors
are inverted.

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]