libbitcoin / libbitcoin-system

Bitcoin Cross-Platform C++ Development Toolkit

Home Page:https://libbitcoin.info/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compilation problems

alonargel opened this issue · comments

Version 3.8.0 does not compile in vs 2022, there are a lot of boost errors. While from Master branch it compiles perfectly. But in master branch, it’s as if all the necessary methods have been cut out; I can’t even create the create_mnemonic method. How to solve a problem?
Снимок экрана 2024-02-17 020743

While not released, v4 (master) is production quality in the system repo and has all of the functionality and more than v3. Much has been restructured and renamed however.

While not released, v4 (master) is production quality in the system repo and has all of the functionality and more than v3. Much has been restructured and renamed however.

Ok, can you give me an example of how to get a Bitcoin address from a mnemonic? I tried to do this and get the master key, but it doesn't work any further. None of the examples from the libbitcoin wiki work.

#include <cstdlib>
#include <string>
#include <bitcoin/system.hpp>

BC_USE_LIBBITCOIN_MAIN
LIBBITCOIN_SYSTEM_WALLET_MNEMONICS_MNEMONIC_HPP

int bc::system::main(int argc, char* argv[])
{
    using namespace bc;
    using namespace bc::system;
    using namespace bc::system::wallet;

    std::string mnemonic_phrase = "bunker churn kangaroo melt bleak chalk vacant alert reason exit forward language";
    libbitcoin::system::wallet::mnemonic mnemonic(mnemonic_phrase);

    libbitcoin::system::wallet::hd_private key = mnemonic.to_key();
    system::cout << mnemonic.to_key() << std::endl;

    return 0;
}

Closing this issue as not supported (vs2022/v3). See #1399

Please provide any specifics as to project compilation failures. Github actions currently shows vs2022 sln and proj files compiling successfully.

Closing in the absence of details.