I replaced all windows.h with the files set and then found myself removing ws2tcpip.h and got this error. Every time I think I follow a fix a new thing comes out
. Any idea what this error means.
In file included from ./sha2.h:36:0,
from cgminer.c:53:
./miner.h:1180:18: error: field 'stratum_hints' has incomplete type
struct addrinfo stratum_hints;
^
It means your headers are missing heaps of definitions. You're clearly headed in the wrong direction...
I put back in the ws2tcpip.h header and commented out the windows.h's In the lines and got this. Any idea if winsock2.h has the file info you need to run cgminer alone and remove this header. I kinda wish there was one .h file to change to get them all in line since each driver calls for winsock.h by itself.
c:\mingw\include\sdkddkver.h:154:0: note: this is the location of the previous d
efinition
# define _WIN32_WINNT _WIN32_WINNT_WIN2K
^
CC cgminer-api.o
CC cgminer-logging.o
CC cgminer-usbutils.o
CC cgminer-libbitfury.o
CC cgminer-mcp2210.o
CC cgminer-driver-bitfury.o
CC cgminer-driver-drillbit.o
CC cgminer-driver-icarus.o
In file included from util.h:30:0,
from miner.h:27,
from compat.h:11,
from driver-icarus.c:48:
c:\mingw\include\ws2tcpip.h:38:2: error: #error "ws2tcpip.h is not compatible wi
th winsock.h. Include winsock2.h instead."
#error "ws2tcpip.h is not compatible with winsock.h. Include winsock2.h instead
."
^
In file included from util.h:30:0,
from miner.h:27,
from compat.h:11,
from driver-icarus.c:48:
c:\mingw\include\ws2tcpip.h:147:8: error: redefinition of 'struct ip_mreq'
struct ip_mreq {
^
In file included from c:\mingw\include\windows.h:93:0,
from driver-icarus.c:45:
c:\mingw\include\winsock.h:315:8: note: originally defined here
struct ip_mreq {
^
In file included from util.h:30:0,
from miner.h:27,
from compat.h:11,
from driver-icarus.c:48:
c:\mingw\include\ws2tcpip.h:390:13: error: expected '=', ',', ';', 'asm' or '__a
ttribute__' before 'freeaddrinfo'
void WSAAPI freeaddrinfo (struct addrinfo*);
^
c:\mingw\include\ws2tcpip.h:391:12: error: expected '=', ',', ';', 'asm' or '__a
ttribute__' before 'getaddrinfo'
int WSAAPI getaddrinfo (const char*,const char*,const struct addrinfo*,
^
c:\mingw\include\ws2tcpip.h:393:12: error: expected '=', ',', ';', 'asm' or '__a
ttribute__' before 'getnameinfo'
int WSAAPI getnameinfo(const struct sockaddr*,socklen_t,char*,DWORD,
^
make[2]: *** [cgminer-driver-icarus.o] Error 1
Edit...
new fun same problem
I tried to use winsock2.h on icarus driver instead of windows.h and got this
make[2]: Entering directory `/home/USER/cgminer-master'
CC cgminer-driver-icarus.o
CCLD cgminer.exe
cgminer-cgminer.o:cgminer.c:(.text+0x84d9): undefined reference to `llround'
collect2.exe: error: ld returned 1 exit status
make[2]: *** [cgminer.exe] Error 1
Is this me using the wrong version of libcurl for to use winsock2.h ? I just installed what was specified in the howto other than the changes I've already specified to it.