Post
Topic
Board Bitcoin Technical Support
Re: Mac Osx Wallet-Qt Compile Error make: *** [build/bloom.o] Error 1
by
anush3070
on 01/08/2014, 22:15:03 UTC
Quote
src/bloom.cpp:63:32: error: member function 'begin' not viable: 'this' argument has type 'const uint256',
but function is not marked const
vector data(hash.begin(), hash.end());
^~~~
src/uint256.h:344:20: note: 'begin' declared here
unsigned char* begin()
^
src/bloom.cpp:93:32: error: member function 'begin' not viable: 'this' argument has type 'const uint256',
but function is not marked const
vector data(hash.begin(), hash.end());
^~~~
src/uint256.h:344:20: note: 'begin' declared here
unsigned char* begin()
^
2 errors generated.
make: *** [build/bloom.o] Error 1

Have a tip?


Modify
src/uint256.h

Line: 344:

Code:
    unsigned char* begin()
    {
        return (unsigned char*)&pn[0];
    }
to
Code:
    unsigned char* begin()
 const    {
        return (unsigned char*)&pn[0];
    }


&


Line: 349:

Code:
    unsigned char* end()
    {
        return (unsigned char*)&pn[WIDTH];
    }
to
Code:
    unsigned char* end()
   const  {
        return (unsigned char*)&pn[WIDTH];
    }



This Should Resolve your problem.