Home > OS >  Cygwin compiled live555 failure
Cygwin compiled live555 failure

Time:10-12

After install cygwin win10 computer virtual machine, according to the online tutorials, after make the instruction, a compiler error, as the chart

Make [1] : enter the directory "/home/jzyua/live/groupsock"
C + + - c - Iinclude -i../UsageEnvironment/include - i. - O - DSOCKLEN_T=socklen_t - DNEWLOCALE_NOT_USED=1 - Wall - DBSD=1 GroupsockHelper. CPP
GroupsockHelper. CPP: in function 'Boolean setSocketKeepAlive (int) :'
GroupsockHelper. CPP: 244:37: error: 'TCP_KEEPCNT' has not been declared in this scope
If (setsockopt (sock, IPPROTO_TCP TCP_KEEPCNT, (void *) & amp; Keepalive_count, sizeof keepalive_count) & lt; 0 {
^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
GroupsockHelper. CPP: 244:37: note: suggested the alternative: 'TCP_NOOPT
'If (setsockopt (sock, IPPROTO_TCP TCP_KEEPCNT, (void *) & amp; Keepalive_count, sizeof keepalive_count) & lt; 0 {
^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
TCP_NOOPT
GroupsockHelper. CPP: 249:37: error: 'TCP_KEEPINTVL' has not been declared in this scope
If (setsockopt (sock, IPPROTO_TCP TCP_KEEPINTVL, (void *) & amp; Keepalive_interval, sizeof keepalive_interval) & lt; 0 {
^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Make [1] : * * */Makefile: 31: GroupsockHelper. O error 1
Make [1] : leave the directory "/home/jzyua/live/groupsock"
Make: * * */Makefile: 34: all error 2

Which master can tell the reason,

CodePudding user response:

Should be the cygwin implementation does not support the keepalive socket options, remove the these options to try

CodePudding user response:

Hello Cygwin how to remove the keepalive option (specific how to operate?)

CodePudding user response:

Know the modify the code to compile successfully

  • Related