Open hv15 opened 2 years ago
Confirmed. This fixes compilation under GCC11. Please merge!
I also had this issue, and this solved it.
I have encountered this very same problem and can only second this. This fixes compilation problem for GCC 11.1.0.
@xmrig plz merge thx
Successfully compiled. Please merge.
On ArchLinux with CUDA 11.4 and GCC11, one gets the following error message when compile xmrig-cuda:
Clearly
size_t
is not defined, and including<cstddef>
solves this. I know that with GCC4/5 that cstddef was pulled out of a lot of headers, making it necessary to explicitly include it. Maybe with GCC11 this also happened; the GNU release notes don't list this though.