Post
Topic
Board Mining (Altcoins)
Re: [ANN]: cpuminer-opt v3.5.10, open source optimized multi-algo CPU miner
by
oldDIN
on 27/02/2017, 09:30:25 UTC
I've also found the problem with compiling hodl with gcc 6.3. There was a macro named min
defined in miner.h. Don't know why compiler version matters.
Crumbling on "min" and "max"
What does it affect?
Code:
#ifndef min
#define min(a,b) (a>b ? (b) :(a))
#endif
#ifndef max
#define max(a,b) (a#endif
If you rename?

I risked
Replace with
Code:
#ifndef minmin
#define minmin(a,b) (a>b ? (b) :(a))
#endif
#ifndef maxmax
#define maxmax(a,b) (a#endif
On W7-64 GCC 6.3 FX-6300 i3-2200 Compilation successful - aes-avx, sse42.
Before v9 v10 compile collapsed
Code:
./configure CFLAGS="-Ofast -march=corei7-avx -Wall" CXXFLAGS="$CFLAGS -std=gnu++11" --with-crypto --with-curl
./configure CFLAGS="-Ofast -march=corei7 -Wall" CXXFLAGS="$CFLAGS -std=gnu++11" --with-crypto --with-curl
Test AMD deviations from the original are not revealed for 10 algorithms.