env: MacBook Pro   Apple M3

ld.lld: error: duplicate symbol: CryptoPP::CallNewHandler()
>>> defined at allocate.cpp:29 (/Users/XXXX/Documents/work/lib-encrypt/EMCrypto/src/main/cpp/cryptopp/allocate.cpp:29)
>>>            allocate.cpp.o:(CryptoPP::CallNewHandler()) in archive libcryptopp.a
>>> defined at misc.cpp:121 (/Users/XXXX/Documents/work/lib-encrypt/EMCrypto/src/main/cpp/cryptopp/misc.cpp:121)
>>>            misc.cpp.o:(.text._ZN8CryptoPP14CallNewHandlerEv+0x0) in archive libcryptopp.a

ld.lld: error: duplicate symbol: CryptoPP::UnalignedAllocate(unsigned long)
>>> defined at allocate.cpp:90 (/Users/XXXX/Documents/work/lib-encrypt/EMCrypto/src/main/cpp/cryptopp/allocate.cpp:90)
>>>            allocate.cpp.o:(CryptoPP::UnalignedAllocate(unsigned long)) in archive libcryptopp.a
>>> defined at misc.cpp:173 (/Users/XXXX/Documents/work/lib-encrypt/EMCrypto/src/main/cpp/cryptopp/misc.cpp:173)
>>>            misc.cpp.o:(.text._ZN8CryptoPP17UnalignedAllocateEm+0x0) in archive libcryptopp.a

ld.lld: error: duplicate symbol: CryptoPP::UnalignedDeallocate(void*)
>>> defined at allocate.cpp:98 (/Users/XXXX/Documents/work/lib-encrypt/EMCrypto/src/main/cpp/cryptopp/allocate.cpp:98)
>>>            allocate.cpp.o:(CryptoPP::UnalignedDeallocate(void*)) in archive libcryptopp.a
>>> defined at misc.cpp:181 (/Users/XXXX/Documents/work/lib-encrypt/EMCrypto/src/main/cpp/cryptopp/misc.cpp:181)
>>>            misc.cpp.o:(.text._ZN8CryptoPP19UnalignedDeallocateEPv+0x0) in archive libcryptopp.a
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
	 Detail: Please check the message from tools.


How to fix it 
ld.lld: error: duplicate symbol: CryptoPP::CallNewHandler()
This is a GitHub Issue
repo:cryptopp
owner:weidai11
Title : ld.lld: error: duplicate symbol: CryptoPP::CallNewHandler()
Issue date:

--- start body ---
env: MacBook Pro   Apple M3

ld.lld: error: duplicate symbol: CryptoPP::CallNewHandler()
>>> defined at allocate.cpp:29 (/Users/XXXX/Documents/work/lib-encrypt/EMCrypto/src/main/cpp/cryptopp/allocate.cpp:29)
>>>            allocate.cpp.o:(CryptoPP::CallNewHandler()) in archive libcryptopp.a
>>> defined at misc.cpp:121 (/Users/XXXX/Documents/work/lib-encrypt/EMCrypto/src/main/cpp/cryptopp/misc.cpp:121)
>>>            misc.cpp.o:(.text._ZN8CryptoPP14CallNewHandlerEv+0x0) in archive libcryptopp.a

ld.lld: error: duplicate symbol: CryptoPP::UnalignedAllocate(unsigned long)
>>> defined at allocate.cpp:90 (/Users/XXXX/Documents/work/lib-encrypt/EMCrypto/src/main/cpp/cryptopp/allocate.cpp:90)
>>>            allocate.cpp.o:(CryptoPP::UnalignedAllocate(unsigned long)) in archive libcryptopp.a
>>> defined at misc.cpp:173 (/Users/XXXX/Documents/work/lib-encrypt/EMCrypto/src/main/cpp/cryptopp/misc.cpp:173)
>>>            misc.cpp.o:(.text._ZN8CryptoPP17UnalignedAllocateEm+0x0) in archive libcryptopp.a

ld.lld: error: duplicate symbol: CryptoPP::UnalignedDeallocate(void*)
>>> defined at allocate.cpp:98 (/Users/XXXX/Documents/work/lib-encrypt/EMCrypto/src/main/cpp/cryptopp/allocate.cpp:98)
>>>            allocate.cpp.o:(CryptoPP::UnalignedDeallocate(void*)) in archive libcryptopp.a
>>> defined at misc.cpp:181 (/Users/XXXX/Documents/work/lib-encrypt/EMCrypto/src/main/cpp/cryptopp/misc.cpp:181)
>>>            misc.cpp.o:(.text._ZN8CryptoPP19UnalignedDeallocateEPv+0x0) in archive libcryptopp.a
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
	 Detail: Please check the message from tools.


How to fix it 
--- end body ---
