Skip to content

Error while make Crypto chacha8.h #328

@markxoe

Description

@markxoe

/home/mark/toastbrotcoin/src/crypto/chacha8.h: In function ‘void Crypto::generate_chacha8_key(Crypto::cn_context&, const string&, Crypto::chacha8_key&)’: /home/mark/toastbrotcoin/src/crypto/chacha8.h:48:40: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of non-trivially copyable type ‘struct Crypto::chacha8_key’; use copy-assignment or copy-initialization instead [-Werror=class-memaccess] 48 | memcpy(&key, &pwd_hash, sizeof(key)); | ^ /home/mark/toastbrotcoin/src/crypto/chacha8.h:23:10: note: ‘struct Crypto::chacha8_key’ declared here 23 | struct chacha8_key { | ^~~~~~~~~~~

Hello,
I tried to solve the problem with reinstalling gcc...
I installed boost with sudo apt install libboost-all-dev
Can anyone help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions