c++ Libtool抛出错误,因为路径带有空格

2nc8po8w  于 2023-06-07  发布在  其他
关注(0)|答案(1)|浏览(145)

我试图在我的windows pc上安装gmp for c++,但到目前为止我遇到了很多困难。我使用msys 2安装gmp,我下载的。在“./configure”和“make”之后,我试图运行“make check”,但得到了

$ make check
make  check-recursive
make[1]: Entering directory '/c/Users/Martin Clever/Desktop/Daten/C++/Privat/RecSolver/gmp-6.2.1'
Making check in tests
make[2]: Entering directory '/c/Users/Martin Clever/Desktop/Daten/C++/Privat/RecSolver/gmp-6.2.1/tests'
Making check in .
make[3]: Entering directory '/c/Users/Martin Clever/Desktop/Daten/C++/Privat/RecSolver/gmp-6.2.1/tests'
make  libtests.la t-bswap.exe t-constants.exe t-count_zeros.exe t-hightomask.exe t-modlinv.exe t-popc.exe t-parity.exe t-sub.exe
make[4]: Entering directory '/c/Users/Martin Clever/Desktop/Daten/C++/Privat/RecSolver/gmp-6.2.1/tests'
make[4]: 'libtests.la' is up to date.
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -O2 -pedantic -fomit-frame-pointer -m64 -mtune=k8 -march=k8 -no-install  -o t-bswap.exe t-bswap.o libtests.la ../libgmp.la
libtool: warning: '-no-install' is ignored for x86_64-w64-mingw32
libtool: warning: assuming '-no-fast-install' instead
libtool:   error: cannot find the library 'Clever/Desktop/Daten/C++/Privat/RecSolver/gmp-6.2.1/libgmp.la' or unhandled argument 'Clever/Desktop/Daten/C++/Privat/RecSolver/gmp-6.2.1/libgmp.la'
make[4]: *** [Makefile:765: t-bswap.exe] Error 1
make[4]: Leaving directory '/c/Users/Martin Clever/Desktop/Daten/C++/Privat/RecSolver/gmp-6.2.1/tests'
make[3]: *** [Makefile:1183: check-am] Error 2
make[3]: Leaving directory '/c/Users/Martin Clever/Desktop/Daten/C++/Privat/RecSolver/gmp-6.2.1/tests'
make[2]: *** [Makefile:823: check-recursive] Error 1
make[2]: Leaving directory '/c/Users/Martin Clever/Desktop/Daten/C++/Privat/RecSolver/gmp-6.2.1/tests'
make[1]: *** [Makefile:997: check-recursive] Error 1
make[1]: Leaving directory '/c/Users/Martin Clever/Desktop/Daten/C++/Privat/RecSolver/gmp-6.2.1'
make: *** [Makefile:1289: check] Error 2

请注意,错误中的路径是'Clever/Desktop/Daten/C++/Privat/RecSolver/gmp-6.2.1/libgmp.la'。因此,我的理论是存在问题,因为路径有空格。这可能是错误的根源吗?有没有更好的方法或更好的方法来实现我正在努力做的事情?

ie3xauqp

ie3xauqp1#

有一个更简单/更不容易出错的方法:只需使用msys 2 MINGW 64运行“pacman -S mingw-w 64-x86_64-gmp”即可-无需下载gmp库。

相关问题