我正在关注此处详细介绍的 文章https://bitcointalk.org/index.php?topic=149479.0 但我似乎在 Windows 上编译的最后一步遇到了一些问题。尝试编译山寨币钱包(基于莱特币)时,我不断收到以下错误
C:\testcoin\src>mingw32-make -f makefile.mingw
g++ -mthreads -O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parame
ter -g -D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE
-DUSE_IPV6=1 -IC:/testcoin/src/leveldb/include -IC:/testcoin/src/leveldb/helpers -I"C:/testcoin/src" -I"c:/deps/boost_1_55_0" -I"c :/deps/db-4.8.30.NC/build_unix" -I "c:/deps/openssl-1.0.1e/include" -I"c:/deps/libpng-1.6.8" -I"c:/ deps/qrencode-3.4.3" -I"c:/deps/protobuf-2.5.0/src" -I"/usr/local/include" -I"c:/testcoin/src/leve ldb/include" - I"c:/testcoin/src/leveldb/" -Wl,--dynamicbase -Wl,--nxcompat -Wl,--l arge-address-aware -static -o testcoind.exe -L"C:/testcoin/ src/leveldb" -L"c:/deps/b oost_1_55_0/stage/lib" -L"c:/deps/db-4.8.30.NC/build_unix" -L"c:/deps/openssl-1.0.1 e"-L"c:/deps/libpng-1.6.8/libs"-L"c:/deps/qrencode-3.4.3/libs"-L"c:/deps/p rotobuf-2.5.0/src/libs" leveldb/libleveldb.a obj/alert.o obj/version.o obj/checkpoints.o obj/netbase.o obj/addrman.o obj/crypter.o obj/key.o obj/db.o obj/init.o obj/keystore.o obj/main.o obj/net.o obj/protocol.o obj/bitcoinrpc.o obj/rpcdum po obj/rpcnet.o obj /rpcmining.o obj/rpcwallet.o obj/rpcblockchain.o obj/rpcrawt ransaction.o obj/script.o obj/scrypt.o obj/sync.o obj/util.o obj/wallet.o obj/wa lletdb。 o obj/hash.o obj/bloom.o obj/noui.o obj/leveldb.o obj/txdb。o -l boost_sys tem-mgw48-mt-s-1_55 -l boost_filesystem-mgw48-mt-s-1_55 -l boost_program_options -mgw48-mt-s-1_55 -l boost_thread-mgw48-mt-s-1_55 -l db_cxx - l leveldb -l boost_c hrono-mgw48-mt-s-1_55 -l ssl -l crypto -l mingwthrd -l kernel32 -l user32 -l gdi 32 -l comdlg32 -l winspool -l winmm -l shell32 -l comctl32 -l ole32 -l oleaut32 -l uuid -l rpcrt4 -l advapi32 -l ws2_32 -l mswsock -l shlwapi obj/leveldb.o:在函数中ZN8CLevelDBC2ERKN5boost10filesystem4pathEjbb':
c:\testcoin\src/leveldb.cpp:46: undefined reference to
leveldb::NewMemEnv(leveldb ::Env*)' collect2.exe: error: ld returned 1 exit status makefile.mingw:144: recipe for target 'testcoind.exe' failed mingw32-make: * [testcoind.exe] Error 1
这是在 Windows 虚拟机上,我完全按照输入的说明进行操作。感谢您的宝贵时间,非常感谢您的帮助