Helloo, i have build libcurl with ssl support statically myself, when i try to compile a simple samples it links allright in a static executable,
but when i try to link it with cgminer 3.6.6 i get
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-driver-opencl.o
CC cgminer-ocl.o
CC cgminer-findnonce.o
CC cgminer-adl.o
CCLD cgminer.exe
cgminer-cgminer.o:cgminer.c:(.text+0x3304): undefined reference to `timeEndPerio
d'
cgminer-cgminer.o:cgminer.c:(.text+0x9f77): undefined reference to `timeEndPerio
d'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cgminer-cg
miner.o: bad reloc address 0x200 in section `.data'
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: final link
failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
make[2]: *** [cgminer.exe] Error 1
make[2]: Leaving directory `/home/user/cgminer2/cgminer-3.6.6'
So i assume timeEndPeriod are undefined for some reason now, how do i fix that?
My configuration of cgminer is
configure --enable-opencl --enable-adl --disable-shared CFLAGS="-DCURL_STATICLIB -DPTW32_STATIC_LIB -O2 -msse2"
My configuration of libcurl is
configure --disable-shared --disable-ldap --with-ssl=/usr/local LIBS="-lgdi32"
My configuration of openssl is
perl Configure mingw no-shared no-asm --prefix=/c/OpenSSL