我尝试使用 make,但一直出现此错误。尝试过 make clean、更新 cpp 和其他一些操作。
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
creating build/lib.linux-x86_64-2.7
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-PPrPZj/python2.7-2.7.15=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-PPrPZj/python2.7-2.7.15=. -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/lhapdf.o -L/home/adrian/Desktop/LHAPDF-6.2.3/src/.libs -lstdc++ -lLHAPDF -o build/lib.linux-x86_64-2.7/lhapdf.so
/usr/bin/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Makefile:485: recipe for target 'all-local' failed
make[2]: * [all-local] Error 1
make[2]: Leaving directory '/home/adrian/Desktop/LHAPDF-6.2.3/wrappers/python'
Makefile:376: recipe for target 'all-recursive' failed
make[1]: * [all-recursive] Error 1
make[1]: Leaving directory '/home/adrian/Desktop/LHAPDF-6.2.3/wrappers'
Makefile:509: recipe for target 'all-recursive' failed
make: * [all-recursive] Error 1
此外,在此之前我还有以下几个:
nothing could be done for ''All...''