|
楼主 |
发表于 2020-4-5 23:01:49
|
显示全部楼层
失败代码主要如下
make[1]: 离开目录“/home/苏科/SuiteSparse-5.7.1/metis-5.1.0”
echo /home/苏科/SuiteSparse-5.7.1/lib/libmetis.dylib \
/home/苏科/SuiteSparse-5.7.1/lib/libmetis.dylib
/home/苏科/SuiteSparse-5.7.1/lib/libmetis.dylib /home/苏科/SuiteSparse-5.7.1/lib/libmetis.dylib
( cd SuiteSparse_config && make )
make[1]: 进入目录“/home/苏科/SuiteSparse-5.7.1/SuiteSparse_config”
cc -O3 -fexceptions -fPIC -fopenmp -c SuiteSparse_config.c
ar rv libsuitesparseconfig.lib SuiteSparse_config.o
ar: 正在创建 libsuitesparseconfig.lib
a - SuiteSparse_config.o
ranlib libsuitesparseconfig.lib
make install INSTALL=/home/苏科/SuiteSparse-5.7.1
make[2]: 进入目录“/home/苏科/SuiteSparse-5.7.1/SuiteSparse_config”
cc -L/home/苏科/SuiteSparse-5.7.1/lib SuiteSparse_config.o -o /home/苏科/SuiteSparse-5.7.1/lib/libsuitesparseconfig.5.7.1.dll -lm
/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../../../x86_64-pc-cygwin/bin/ld: /usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../../../lib/libcygwin.a(libcmain.o): in function `main':
/usr/src/debug/cygwin-3.1.4-1/winsup/cygwin/lib/libcmain.c:37: undefined reference to `WinMain'
/usr/src/debug/cygwin-3.1.4-1/winsup/cygwin/lib/libcmain.c:37:(.text.startup+0x7f): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `WinMain'
collect2: 错误:ld 返回 1
make[2]: *** [Makefile:53:/home/苏科/SuiteSparse-5.7.1/lib/libsuitesparseconfig.5.7.1.dll] 错误 1
make[2]: 离开目录“/home/苏科/SuiteSparse-5.7.1/SuiteSparse_config”
make[1]: *** [Makefile:23:library] 错误 2
make[1]: 离开目录“/home/苏科/SuiteSparse-5.7.1/SuiteSparse_config”
make: *** [Makefile:14:go] 错误 2 |
|