Skip to content

Fix compile error: add iostream in word_list.h#10

Open
mrfeod wants to merge 2 commits intociband:masterfrom
mrfeod:word_list_output_operator_compile
Open

Fix compile error: add iostream in word_list.h#10
mrfeod wants to merge 2 commits intociband:masterfrom
mrfeod:word_list_output_operator_compile

Conversation

@mrfeod
Copy link

@mrfeod mrfeod commented Oct 14, 2024

If you try to compile the example without output, like this:

#include "bip39/bip39.h"

int main(int /*argc*/, char* /*argv*/[]) {
    const auto passphrase = BIP39::generate_mnemonic();
    return 0;
}

You will see an compile error:

[build] D:\Documents\Work\code\bip39\src\include\bip39\word_list.h(53): note: see reference to function template instantiation 'std::basic_ostream<char,std::char_traits> &std::operator <<<char,std::char_traits,std::allocator>(std::basic_ostream<char,std::char_traits> &,const std::basic_string<char,std::char_traits,std::allocator> &)' being compiled
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\include\xstring(494): error C2065: 'iostate': undeclared identifier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant