0
我正在嘗試構建Python的scikit-learn庫,它將構建文件構建爲Windows 32位系統中的C++文件。雖然建設我得到以下錯誤。在Windows中構建Scikit-learn Python庫的問題
undefined reference to `__sync_fetch_and_add_4'
c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe: build\temp
.win32-2.7\Release\sklearn\ensemble\_gradient_boosting.o: bad reloc address 0x0
in section `.data'
collect2.exe: error: ld returned 1 exit status
error: Command "g++ -shared build\temp.win32-2.7\Release\sklearn\ensemble\_gradi
ent_boosting.o -LC:\Python27\libs -LC:\Python27\PCbuild -Lbuild\temp.win32-2.7 -
lpython27 -lmsvcr90 -o build\lib.win32-2.7\sklearn\ensemble\_gradient_boosting.p
yd" failed with exit status 1
這是什麼原因?第一行是什麼意思關於一個未定義的參考? 我該如何解決這個問題?
它是否包含blas?我發現這是導致這個錯誤的blas的無法使用。 – maheshakya