18-05-2018, Friday-14:17:34
also upnp fehlt bei der obigen Datei noch
Welche Version von miniupnpc braucht es?
mit der 1.6 bekomme ich nämlich Fehler
Welche Version von miniupnpc braucht es?
mit der 1.6 bekomme ich nämlich Fehler
Code:
...
===> HOSTCXX network/network.cc
network/network.cc: In function ‘bool prepare_for_server(char*, int)’:
network/network.cc:849:18: error: ‘UPNP_LOCAL_PORT_ANY’ was not declared in this scope
int localport = UPNP_LOCAL_PORT_ANY;
^
network/network.cc:855:95: error: invalid conversion from ‘unsigned char’ to ‘int*’ [-fpermissive]
if( (devlist = upnpDiscover( 2000, multicastif, minissdpdpath, localport, ipv6, ttl, &error )) ) {
^
network/network.cc:855:95: error: too many arguments to function ‘UPNPDev* upnpDiscover(int, const char*, const char*, int, int, int*)’
In file included from network/network.cc:838:0:
/usr/include/miniupnpc/miniupnpc.h:53:1: note: declared here
upnpDiscover(int delay, const char * multicastif,
^
network/network.cc:846:14: warning: unused variable ‘rootdescurl’ [-Wunused-variable]
const char *rootdescurl = 0;
^
network/network.cc: In function ‘void remove_port_forwarding(int)’:
network/network.cc:908:18: error: ‘UPNP_LOCAL_PORT_ANY’ was not declared in this scope
int localport = UPNP_LOCAL_PORT_ANY;
^
network/network.cc:914:95: error: invalid conversion from ‘unsigned char’ to ‘int*’ [-fpermissive]
if( (devlist = upnpDiscover( 2000, multicastif, minissdpdpath, localport, ipv6, ttl, &error )) ) {
^
network/network.cc:914:95: error: too many arguments to function ‘UPNPDev* upnpDiscover(int, const char*, const char*, int, int, int*)’
In file included from network/network.cc:838:0:
/usr/include/miniupnpc/miniupnpc.h:53:1: note: declared here
upnpDiscover(int delay, const char * multicastif,
^
network/network.cc:923:10: warning: unused variable ‘iport’ [-Wunused-variable]
char *iport = eport;
^
network/network.cc:912:7: warning: unused variable ‘has_IP’ [-Wunused-variable]
bool has_IP = false;
^
make: *** [build/default/network/network.o] Fehler 1