weidai11 / cryptopp

free C++ class library of cryptographic schemes
https://cryptopp.com
Other
4.82k stars 1.49k forks source link

Linker command #1244

Closed AnoTherK-ATK closed 11 months ago

AnoTherK-ATK commented 11 months ago

Hello, I'm using Msys2 MinGW Clang++ to build cryptopp. When I did the make command, I got this error:

C:/msys64/mingw64/bin/ld: ./libcryptopp.a(cpu.o): in function `CryptoPP::XGetBV(unsigned int)':
D:/cryptopp890/cpu.cpp:395:(.text+0x11): undefined reference to `XGETBV64'
C:/msys64/mingw64/bin/ld: ./libcryptopp.a(cpu.o): in function `CryptoPP::CpuId(unsigned int, unsigned int, unsigned int*)':
D:/cryptopp890/cpu.cpp:453:(.text+0x25): undefined reference to `CPUID64'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [GNUmakefile:1511: cryptest.exe] Error 1

Do you know how to fix it or can you give me the some instruction for me, I have an assignments about this so please help me. Thank you