Post
Topic
Board Mining (Altcoins)
Re: [ANN] cpuminer-opt v3.12.6.1, open source optimized multi-algo CPU miner
by
cmyk-B
on 04/01/2022, 02:12:36 UTC
Any chance you could help with the following error during compilation?
This is under centos 6 and gcc 8.3.1

util.c: In function ‘send_line’:
util.c:1136:15: error: ‘sock’ undeclared (first use in this function); did you mean ‘work’?
      n = send(sock, s + sent, len, 0);
               ^~~~
               work
util.c:1136:15: note: each undeclared identifier is reported only once for each function it appears in


Make sure you are downloading it from the official source because line 1136 in util.c is a case statement and the function has nothing to do with sockets.

https://github.com/JayDDee/cpuminer-opt/blob/master/util.c#L1136

Code:
case 196:  /* Testnet script hash */