fireice-uk / xmr-stak-nvidia

Monero NVIDIA miner
GNU General Public License v3.0
249 stars 99 forks source link

OSX compilation error (non-constant-expression cannot be narrowed from type 'uint64_t') #130

Closed MatthijsZw closed 6 years ago

MatthijsZw commented 6 years ago

Compilation hangs at 80%:

xmr-stak-nvidia-master/minethd.cpp:50:43: error: non-constant-expression cannot be narrowed from type 'uint64_t' (aka 'unsigned long long') to 'integer_t' (aka 'int') in initializer list [-Wc++11-narrowing] thread_affinity_policy_data_t policy = { cpu_id };

And:

xmr-stak-nvidia-master/minethd.cpp:256:3: error: no member named 'exit' in namespace 'std'; did you mean simply 'exit'? std::exit(0); ^~~~~~~~~ exit

I'm using clang 7.3.0 on OSX 10.12.6, with the latest CUDA + Patch and latest release from master-branch (915ed85)

MatthijsZw commented 6 years ago

I was too quick :) I do not have this problem in the DEV-branch. You can close this issue.

psychocrypt commented 6 years ago

already solved in the dev branch