[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 post-ui.cc 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:1.9.2.9) 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:
>>> post-ui.cc: In member function ‘void pan::PostUI::spawn_editor()’:
>>> post-ui.cc:742: 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.
signature.asc
Description: OpenPGP digital signature
- [Pan-devel] Ping K.Haley: latest testing branch updates, I get compiler error in post-ui.cc line 742: ‘_c lose’ not declared., SciFi, 2010/10/17
- [Pan-devel] Re: Ping K.Haley: latest testing bra nch updates, I get compiler error in post-ui.cc line 742: ‘_close’ not declared., walt, 2010/10/17
- [Pan-devel] Re: Ping K.Haley: latest testing br anch updates, I get compiler error in post-ui.cc line 742 : ‘_close’ not declared.,
K. Haley <=
- [Pan-devel] Re: Ping K.Haley: latest test ing branch updates, I get compiler error in post-ui. cc line 742: ‘_close’ not declared., walt, 2010/10/19
- [Pan-devel] Re: Ping K.Haley: latest testing branch updates, I get compiler error in post-ui.cc line 742: ‘_c lose’ not declared., SciFi, 2010/10/20
- [Pan-devel] Re: Ping K.Haley: latest testing branch updates, I get compiler error in post-ui.cc line 742: ‘_c lose’ not declared., Jack Cuyler, 2010/10/22
- [Pan-devel] Re: Ping K.Haley: latest testing branch updates, I get compiler error in post-ui.cc line 742: ‘_c lose’ not declared., SciFi, 2010/10/23
- [Pan-devel] Re: Ping K.Haley: latest testing branch updates, I get compiler error in post-ui.cc line 742: ‘_c lose’ not declared., SciFi, 2010/10/23
- [Pan-devel] Re: Ping K.Haley: latest testing branch updates, I get compiler error in post-ui.cc line 742: ‘_c lose’ not declared., Jack Cuyler, 2010/10/23
- [Pan-devel] Re: Ping K.Haley: latest testing branch updates, I get compiler error in post-ui.cc line 742: ‘_c lose’ not declared., SciFi, 2010/10/23