全部,
概括 ...
我正在尝试编译 arma.sourceforge.net/docs.html#example_prog 的 example.cpp
我尝试用 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@Hotmail.com
详情如下...
我下载了 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/download.html#windows
我有 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
许多文件.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@Hotmail.com