I could not build sockets pkg. on cygwin octave-2.9.15.
(I have never been successful before but I have not care it.)
sockets.cc:279: error: `::close' has not been declared
make: *** [sockets.oct] Error 1
void octave_socket::remove_sock_fd(void)
{
#ifndef __WIN32__
::close( sock_fd );
#else
::closesocket( sock_fd );
#endif
socket_map.erase( sock_fd );
sock_fd = -1;
}
Pherhaps in the following, there is an origin of error.
Do I have to add the define of '::close'?
// System includes
#include <sys/types.h>
#ifndef __WIN32__
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#else
typedef unsigned int socklen_t;
#endif
#include <errno.h>
***********************
octave:10> pkg install -local -verbose sockets-1.0.2.tar.gz
sockets.cc: In member function `void octave_socket::remove_sock_fd()':
sockets.cc:279: error: `::close' has not been declared
make: *** [sockets.oct] Error 1
mkdir (C:/PROGRA~1/cygwin/tmp/oct-22db70.3)
untar (sockets-1.0.2.tar.gz, C:/PROGRA~1/cygwin/tmp/oct-22db70.3)
error: 'make' returned the following error: make: Entering directory
`/tmp/oct-22db70.3/sockets-1.0.2/src'
mkoctfile -s sockets.cc
make: Leaving directory `/tmp/oct-22db70.3/sockets-1.0.2/src'
error: called from `pkg:configure_make' in file
/opt/octave/octave-2.9.15/share/octave/2.9.15/m/pkg/pkg.m near line 1044,
column 2
*******************
Tatsuro
--------------------------------------
Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
http://pr.mail.yahoo.co.jp/toolbar/
_______________________________________________
Help-octave mailing list
address@hidden
https://www.cae.wisc.edu/mailman/listinfo/help-octave