:: [Libbitcoin] Compiling Quickstart e…
Inizio della pagina
Delete this message
Reply to this message
Autore: Ramón T. B.
Data:  
To: libbitcoin@lists.dyne.org
Oggetto: [Libbitcoin] Compiling Quickstart example
Hello all,
 
I'm trying to compile the Quickstart example, but I get an error:
[tb@new-host programs]$ g++ -o test test.cpp -std=c++11 $(pkg-config --cflags --libs libbitcoin)                                                            
test.cpp: In function 'int main()':                                                                                                                                     
test.cpp:15:50: error: invalid initialization of reference of type 'const libbitcoin::block_header_type&' from expression of type 'libbitcoin::block_type'              
In file included from /usr/local/include/bitcoin/bitcoin.hpp:170:0,                                                                                                     
                 from test.cpp:9:                                                                                                                                       
/usr/local/include/bitcoin/block.hpp:47:13: error: in passing argument 1 of 'libbitcoin::hash_digest libbitcoin::hash_block_header(const libbitcoin::block_header_type&)'            
It seems that the function hash_block_headerdoesn't work with the output of genesis_block() because of data types (block_type !=  block_header_type). 

Someone could help?

Regards