I’m building zxing using MinGW, but it fails with these errors:
build\core\tests\src\common\BitArrayTest.cpp: In static member function 'static void zxing::BitArrayTest::fillRandom(zxing::BitArray&, zxing::BitArray&)':
build\core\tests\src\common\BitArrayTest.cpp:99:39: error: 'srandom' was not declared in this scope
build\core\tests\src\common\BitArrayTest.cpp:101:15: error: 'random' was not declared in this scope
scons: *** [build\core\tests\src\common\BitArrayTest.o] Error 1
I tried adding -DANN_NO_RANDOM to the compiler flags, but it didn’t help.
srandomis alinuxfunction, instead use srand and if you don’t want to change the code from external library, just add-Dsrandom=srand -Drandom=randto the compiler flags.