Skip to content

XXH_INLINE_ALL conflict with xxh_x86dispatch #1071

@Dr-Hex

Description

@Dr-Hex

By defining XXH_INLINE_ALL, I have compilation error on MSVS.

Blaming: xxh_x86dispatch.h::XXH3_128bits_dispatch
Error text: static function declared but not defined.

My code is:

#define XXH_INLINE_ALL
#include "xxh_x86dispatch.h"

static inline std::vector<uint8_t> xxh128(const std::vector<uint8_t>& data)
{
    const XXH128_hash_t hash = XXH3_128bits(data.data(), data.size());
	// ...
}

Included files:

xxh_x86dispatch.h
xxh_x86dispatch.c
xxhash.h

Uses the latest source code of "dev" branch.
Removing XXH_INLINE_ALL fixes the issue.

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