jonnylynchy/Blockchain-C-Plus-Plus-Example

getting error "undefined reference to `Blockchain::Blockchain()'"

Opened this issue · 0 comments

dheerajbishnoi123@dheerajpc:~/Documents/c++ programmer/BlockChainExample$ g++ main.cpp
/tmp/ccOyLwuF.o: In function main': main.cpp:(.text+0x26): undefined reference to Blockchain::Blockchain()'
main.cpp:(.text+0x125): undefined reference to Blockchain::addBlock(TransactionData)' main.cpp:(.text+0x230): undefined reference to Blockchain::addBlock(TransactionData)'
main.cpp:(.text+0x24b): undefined reference to Blockchain::printChain()' main.cpp:(.text+0x25a): undefined reference to Blockchain::isChainValid()'
main.cpp:(.text+0x27f): undefined reference to Blockchain::getLatestBlock()' main.cpp:(.text+0x2c3): undefined reference to Blockchain::printChain()'
main.cpp:(.text+0x2d2): undefined reference to `Blockchain::isChainValid()'