[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pkg: sockets-1.0.2.tar.gz
From: |
Tatsuro MATSUOKA |
Subject: |
Re: pkg: sockets-1.0.2.tar.gz |
Date: |
Thu, 18 Oct 2007 19:51:32 +0900 (JST) |
--- Michael Goffioul <address@hidden> wrote:
> This is the standard way to access the global namespace in
> C++. For instance, consider this code
>
> class A
> {
> public:
> void close(int fd)
> {
> ::close(fd);
> }
> };
>
> Without the 2 colons, the compiler would interpret this as a
> recursion (close would call itself). The :: tells the compiler to
> use the close function from the global namespace (which is
> unnamed; hence it's left empty).
Thanks for Michael.
Your explanation itself is very comprehensive.
However, what can I do to overcome the error?
Is it possble to be my complier does not work or header files setting incorrect?
I tried the following:
#ifndef __WIN32__
//::close( sock_fd );
#else
The build itself has finished without error.
But I think this will cause the runtime errors.
Therefore I at the moment stop support this package for my cygwin distribution.
Thank you again your kind answer for my elemetary question.
Tatsuro
--------------------------------------
Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
http://pr.mail.yahoo.co.jp/toolbar/