herumi / bls

288 stars 133 forks source link

error: use of undeclared identifier '_mm_popcnt_u32' #10

Closed ggq89 closed 5 years ago

ggq89 commented 5 years ago

I build and test for Windows 10, have following issues:

\bls>mklib
make lib/lib384.lib
CFLAGS=/MT /DNOMINMAX /Ox /DNDEBUG /W4 /Zi /EHsc /nologo -I ./include -I../cybozulib/include -I../cybozulib_ext/include -I../mcl/include/ -I../mcl/src -I./ -I../xbyak/ /DMCLBN_FP_UNIT_SIZE=6 /DMCL_NO_AUTOLINK /DMCLBN_NO_AUTOLINK /DBLS_DONT_EXPORT
In file included from src/bls_c.cpp:6:
In file included from .\../mcl/src/bn_c_impl.hpp:7:
In file included from ../mcl/include\mcl/bn384.hpp:10:
In file included from ../mcl/include\mcl/bn.hpp:9:
In file included from ../mcl/include\mcl/fp_tower.hpp:9:
In file included from ../mcl/include\mcl/fp.hpp:30:
In file included from ../mcl/include\mcl/util.hpp:9:
../cybozulib/include\cybozu/bit_operation.hpp(121,31) :  error: use of undeclared identifier '_mm_popcnt_u32'
        return static_cast<uint32_t>(_mm_popcnt_u32(x));
                                     ^
1 error generated.
In file included from ../mcl/src/fp.cpp:2:
In file included from ../mcl/include\mcl/util.hpp:9:
../cybozulib/include\cybozu/bit_operation.hpp(121,31) :  error: use of undeclared identifier '_mm_popcnt_u32'
        return static_cast<uint32_t>(_mm_popcnt_u32(x));
                                     ^
1 error generated.
Microsoft (R) Library Manager Version 12.00.21005.1
Copyright (C) Microsoft Corporation.  All rights reserved.

LINK : fatal error LNK1181: 无法打开输入文件“obj/bls_c.obj”

Please solve it

herumi commented 5 years ago

I fixed the error.

mklib
mk -s test\bls_c384_test.cpp
bin\bls_c384_test.exe
ggq89 commented 5 years ago

that`s right!