Blockchain-C-Plus-Plus-Example icon indicating copy to clipboard operation
Blockchain-C-Plus-Plus-Example copied to clipboard

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

Open dheerajpoonia29 opened this issue 7 years ago • 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()'

dheerajpoonia29 avatar Oct 19 '18 17:10 dheerajpoonia29