Re: Ping K.Haley: latest testing br anch updates, I get compiler error in post-ui.cc line 742 : ‘_close’ not declared.

"K. Haley" <[email protected]>
Newsgroups gmane.comp.gnome.apps.pan.devel
Message-ID <[email protected]>
 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.

_______________________________________________
Pan-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/pan-devel
signature.asc (application/pgp-signature, 259 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAky84cIACgkQDMrq4AbU59FIdwCguPoQJnPhRH7a2COadQWwxzo1
BzcAnA6DDOrNrdBeoMne/s5oEbpzJB8L
=kWJ6
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.