[mlpack] mlpack linking error on Windows
Giampaolo Bellini
iw2lsi at gmail.com
Fri Feb 19 17:37:18 EST 2016
Hi all...
I'm trying to compile mlpack 2.0.1 on windows using msys2-32... but I'm
always getting the error below, either using the precompiled package
(linked dinamically) and compiling from sources (and linking statically).
any ideas ?
thanks a lot
Giampaolo
--------
./release\ScanData.o:ScanData.cpp:(.text$_ZN6mlpack5bound10HRectBoundILi2ELb1EEoRIN4arma7subviewIdEEEERS2_RKT_[__ZN6mlpack5bound10HRectBoundILi2ELb1EEoRIN4arma7subviewIdEEEERS2_RKT_]+0x4f):
undefined reference to `mlpack::Log::Assert(bool, std::string const&)'
./release\ScanData.o:ScanData.cpp:(.text$_ZNK6mlpack5bound10HRectBoundILi2ELb1EE13RangeDistanceIN4arma3ColIdEEEENS_4math5RangeERKT_PN5boost9enable_ifI8IsVectorIS9_EvEE[__ZNK6mlpack5bound10HRectBoundILi2ELb1EE13RangeDistanceIN4arma3ColIdEEEENS_4math5RangeERKT_PN5boost9enable_ifI8IsVectorIS9_EvEE]+0x3f):
undefined reference to `mlpack::Log::Assert(bool, std::string const&)'
Makefile.Release:95: recipe for target 'release/myAPP.exe' failed
mingw32-make[1]: Leaving directory 'C:/home/paolo/projects/myAPP'
Makefile:34: recipe for target 'release' failed
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld.exe:
./release\ScanData.o: bad reloc address 0x3f in section
`.text$_ZNK6mlpack5bound10HRectBoundILi2ELb1EE13RangeDistanceIN4arma3ColIdEEEENS_4math5RangeERKT_PN5boost9enable_ifI8IsVectorIS9_EvEE[__ZNK6mlpack5bound10HRectBoundILi2ELb1EE13RangeDistanceIN4arma3ColIdEEEENS_4math5RangeERKT_PN5boost9enable_ifI8IsVectorIS9_EvEE]'
collect2.exe: error: ld returned 1 exit status
mingw32-make[1]: *** [release\myAPP.exe] Error 1
mingw32-make: *** [release] Error 2
23:27:06: The process "C:\mingw32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project myAPP(kit: Qt4.8.7)
When executing step "Make"
23:27:06: Elapsed time: 00:13.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack/attachments/20160219/6e2fa91c/attachment.html>
More information about the mlpack
mailing list