下的所有LAPACK BLAS,犰狳C++和BLAS和ATLAS不能找到mingw32的
摘要...
我試圖編譯 arma.sourceforge.net/docs.html#example_prog的example.cpp
我嘗試編譯並鏈接armadillo與lapack和blas。 我總是收到相同的錯誤。 返回
ld.exe: cannot find -llapack
ld.exe: cannot find -lblas
這個消息我覈實,我所有的路徑,下面是正確的,運行以下。
g++ example.cpp -o example -O1 -I..\..\lapackblas_headers\lapack -I..\..\lapackblas_headers\blas -I..\include
-L .... \ lapackblas_MD_debug -llapack -lblas
返回
ld.exe: cannot find -llapack
ld.exe: cannot find -lblas
這個消息是從
f:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -llapack
f:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lblas
collect2:LD返回1退出狀態
Andre Mikulec [email protected]
詳細情況如下...
我下載LAPACK和BLAS的預編譯的版本是從下載... http://www.fi.muni.cz/~xsvobod2/misc/lapack/
我這裏的指示
https://sourceforge.net/projects/arma/files/latest/download
http://sourceforge.net/projects/arma/files/armadillo-3.800.0.tar.gz
file:///M:/YDrive/All_Economics/eclipse_workspace/armadillo-3.800.0/README.txt
從
arma.sourceforge.net/downloa d.html#窗口
我有LAPACK和BLAS庫
ls -alrt ../../lapackblas-MD-debug
-rw-r--r-- 1 Administrator Administrators 27092 Oct 5 2009 blas_win32_MDd.lib
-rwxr-xr-x 1 Administrator Administrators 280576 Oct 5 2009 blas_win32_MDd.dll
-rw-r--r-- 1 Administrator Administrators 254886 Oct 5 2009 lapack_win32_MDd.lib
-rwxr-xr-x 1 Administrator Administrators 3774464 Oct 5 2009 lapack_win32_MDd.dll
drwxr-xr-x 2 Administrator Administrators 0 Mar 3 08:02 .
drwxr-xr-x 10 Administrator Administrators 0 Mar 3 08:06 ..
ls -alrt ../../lapackblas_headers/blas
MANYFILES.h
ls -alrt ../../lapackblas_headers/lapack
MANYFILES.h
ls -alrt ../include
MANYFILES.h
我嘗試編譯,並與LAPACK和BLAS鏈接犰狳。 我總是收到相同的錯誤。
M:
cd \YDrive\All_Economics\eclipse_workspace\armadillo-3.800.0\examples
M:\YDrive\All_Economics\eclipse_workspace\armadillo-3.800.0\examples>
我試過相對路徑
g++ example.cpp -o example -O1 -I..\..\lapackblas_headers\lapack -I..\..\lapackblas_headers\blas -I..\include
-L..\..\lapackblas_MD_debug -llapack -lblas
我想絕對路徑
g++ example.cpp -o example -O1 -IM:\YDrive\All_Economics\eclipse_workspace\lapackblas_headers\lapack
-IM:\YDrive\All_Economics\eclipse_workspace\lapackblas_headers\blas
-IM:\YDrive\All_Economics\eclipse_workspace\armadillo-3.800.0\include
-LM:\YDrive\All_Economics\eclipse_workspace\lapackblas_MD_debug -llapack -lblas
在所有情況下返回的信息是這裏
ld.exe: cannot find -llapack
ld.exe: cannot find -lblas
f:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -llapack
f:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lblas
collect2: ld returned 1 exit status
任何想法?
謝謝。 Andre Mikulec Andre_Mikulec @ Hotmail。com
'-L .... \ lapackblas_MD_debug -llapack -lblas'您錯過了'\\'。這只是你的文章中的一個錯字嗎? – 2013-03-03 17:15:44
這不是我的錯字。這是網頁執行一些魔術,刪除我的斜線,因爲我粘貼的代碼。這裏是我的原始命令:g ++ example.cpp -o example -O1 -I .. \ .. \ lapackblas_headers \ lapack -I .. \ .. \ lapackblas_headers \ blas -I .. \ include -L .. \ .. \ lapackblas_MD_debug -llapack -lblas沒有錯字「-L .. \ .. \ lapackblas_MD_debug」 – 2013-03-03 22:03:30