相关疑难解决方法(0)

未解析的外部符号__mm256_setr_epi64x

我用g ++编写并调试了一些AVX代码,现在我正试图让它与MSVC一起工作,但我一直在

错误LNK2019:未解析的外部符号__mm256_setr_epi64x在函数"private:union __m256i __thiscall avx_matrix :: avx_bit_mask(unsigned int)const"中引用(?avx_bit_mask @ avx_matrix @@ ABE?AT__m256i @@ I @ Z)

引用的代码片段是

...

#include <immintrin.h>

...

    /* All zeros except for pos-th position (0..255) */
    __m256i avx_matrix::avx_bit_mask(const std::size_t pos) const
    {
        int64_t a = (pos >= 0 && pos < 64) ? 1LL << (pos - 0) : 0;
        int64_t b = (pos >= 64 && pos < 128) ? 1LL << (pos - 64) : 0;
        int64_t c = (pos >= 128 && …
Run Code Online (Sandbox Code Playgroud)

c++ intrinsics avx visual-studio-2012 msvc12

5
推荐指数
2
解决办法
823
查看次数

标签 统计

avx ×1

c++ ×1

intrinsics ×1

msvc12 ×1

visual-studio-2012 ×1