Post
Topic
Board Development & Technical Discussion
Re: Building headless Bitcoin and Bitcoin-qt on Windows
by
old c coder
on 14/03/2014, 20:26:48 UTC
Hey, thanks for the great write up. I seem to be having some issues with the last step of compiling on windows. When attempting to compile an altcoin wallet (based on litecoin), I keep receiving the following error

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"
...
obj/leveldb.o: In function `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

This is on a windows virtual machine in which I followed the directions exactly as typed. Thanks for your time and any help is greatly appreciated.

Hello ?

g++ is trying to link from libleveldb.a & libmemenv.a which ought to be in C:/testcoin/src/leveldb.  So are they there?  If not, then they should have been built and may be placed elsewhere?

Ron