-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile error in mingw (gcc 4.8) #145
Comments
Mingw has no CUDA Support whatsoever. Give ut up. -----Original Message----- might need to update my gcc, not sure whats going wrong here, working to try to figure it out. |
if you install the sdk and point the config at the dlls would that work? |
The nVidia CUDA compiler has a requirement to run with Visual Studio's 2014-10-18 22:29 GMT+02:00 kotoroshinoto [email protected]:
|
might need to update my gcc, not sure whats going wrong here, working to try to figure it out.
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -msse2 -DCURL_STATICLIB -I/usr/local/include -fopenmp -fno-strict-aliasing -I./compat/jansson -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME -g -O2 -MT cudaminer-cpu-miner.o -MD -MP -MF .deps/cudaminer-cpu-miner.Tpo -c -o cudaminer-cpu-miner.o
test -f 'cpu-miner.c' || echo './'
cpu-miner.cIn file included from cpu-miner.c:40:0:
compat.h:8:22: error: conflicting types for 'sleep'
static __inline void sleep(int secs)
^
In file included from cpu-miner.c:19:0:
f:\mingw\msys\1.0\mingw\x86_64-w64-mingw32\include\unistd.h:34:22: note: previous declaration of 'sleep' was here
unsigned int __cdecl sleep (unsigned int);
^
In file included from cpu-miner.c:41:0:
miner.h:22:13: error: conflicting types for 'ssize_t'
typedef int ssize_t;
^
In file included from f:\mingw\msys\1.0\mingw\x86_64-w64-mingw32\include\crtdefs.h:10:0,
from f:\mingw\msys\1.0\mingw\x86_64-w64-mingw32\include\stdio.h:9,
from cpu-miner.c:14:
f:\mingw\msys\1.0\mingw\x86_64-w64-mingw32\include_mingw.h:387:35: note: previous declaration of 'ssize_t' was here
__MINGW_EXTENSION typedef __int64 ssize_t;
^
make[2]: *** [cudaminer-cpu-miner.o] Error 1
The text was updated successfully, but these errors were encountered: