Post
Topic
Board Announcements (Altcoins)
Re: [ANN][DRK] DarkCoin | Anonymous (pre-alpha) | CPU only | KGW | ASIC Resistant
by
urtk
on 13/02/2014, 03:48:50 UTC
Hey eduffield (sorry if I'm spelling wrong going off memory). I'm tinkering with your sg miner trying to see if I can contribute to this. I'm away from home and thus toying around on a windows machine. I made a few changes but I can't compile it, I'm getting undefined reference to "sleep" errors. If memory serves me right you can't use sleep() in windows. It happens trying to compile the original files you posted. Have you attempted to build it in windows?

Do you know a workaround for this?

edit: compiling in MinGW, I'm not familiar with any others.
I tried to compile it tonight and got the same error. This helped me:

https://github.com/Niek/sgminer/commit/4e7c8a067223bb6b49791bf0ded1e3588623c44e
#define sleep(x) Sleep(1000 * x)