Post
Topic
Board Development & Technical Discussion
Re: Building headless Bitcoin and Bitcoin-qt on Windows
by
nitrogenetics
on 15/02/2014, 14:55:40 UTC
I am trying to compile smartcoind.exe, but  I am bumping in the following error

C:/deps/boost_1_53_0/boost/program_options/eof_iterator.hpp:75: undefined refere
nce to `boost::program_options::detail::common_config_file_iterator::get()'
obj/util.o: In function `ZN5boost15program_options6detail26basic_config_file_ite
ratorIcEC1ERSiRKSt3setISsSt4lessISsESaISsEEb':
C:/deps/boost_1_53_0/boost/program_options/detail/config_file.hpp:145: undefined
 reference to `boost::program_options::detail::common_config_file_iterator::comm
on_config_file_iterator(std::set, std::alloc
ator > const&, bool)'
C:/deps/boost_1_53_0/boost/program_options/detail/config_file.hpp:148: undefined
 reference to `boost::program_options::detail::common_config_file_iterator::get(
)'
collect2.exe: error: ld returned 1 exit status
makefile.mingw:76: recipe for target 'smartcoind.exe' failed
mingw32-make: *** [smartcoind.exe] Error 1


Anybody experience this before?

Fixing the makefile seems to solve the linking error

LIBS= \
 -l boost_system-mgw48-mt-s-1_5x \
 -l boost_filesystem-mgw48-mt-s-1_5x \
 -l boost_program_options-mgw48-mt-s-1_5x \
 -l boost_thread-mgw48-mt-s-1_5x \