草庐IT

static-compilation

全部标签

c++ - 带有 ax_check_compile_flag 的 autotools 语法错误

我正在使用autotools构建我的C++应用程序。在我的configure.ac中,我有以下行:AX_CHECK_COMPILE_FLAG([-Wall],[CPPFLAGS="$CPPFLAGS-Wall"])在执行./configure时(在运行autoreconf-i之后)会导致以下错误:./configure:line3825:syntaxerrornearunexpectedtoken`-Wall,'./configure:line3825:`AX_CHECK_COMPILE_FLAG(-Wall,CPPFLAGS="$CPPFLAGS-Wall")'我的系统:Linuxw

c++ - 带有 ax_check_compile_flag 的 autotools 语法错误

我正在使用autotools构建我的C++应用程序。在我的configure.ac中,我有以下行:AX_CHECK_COMPILE_FLAG([-Wall],[CPPFLAGS="$CPPFLAGS-Wall"])在执行./configure时(在运行autoreconf-i之后)会导致以下错误:./configure:line3825:syntaxerrornearunexpectedtoken`-Wall,'./configure:line3825:`AX_CHECK_COMPILE_FLAG(-Wall,CPPFLAGS="$CPPFLAGS-Wall")'我的系统:Linuxw

c - "Warning: Linking the shared library against static library is not portable"是什么意思?

我正在使用libmxml.a库的某些函数制作一个动态库,但我收到此警告:*Warning:Linkingthesharedlibrarylibgstmatroskademux.laagainstthe_*staticlibrary/home/Mr32/gst-template4_final/gst-plugin/src/libmxml.a_isnotportable!我也收到这个警告:gcc:/home/Mr32/gst-template4_final/gst-plugin/src/libmxml.a:linker_inputfileunusedbecauselinkingnotdon

c - "Warning: Linking the shared library against static library is not portable"是什么意思?

我正在使用libmxml.a库的某些函数制作一个动态库,但我收到此警告:*Warning:Linkingthesharedlibrarylibgstmatroskademux.laagainstthe_*staticlibrary/home/Mr32/gst-template4_final/gst-plugin/src/libmxml.a_isnotportable!我也收到这个警告:gcc:/home/Mr32/gst-template4_final/gst-plugin/src/libmxml.a:linker_inputfileunusedbecauselinkingnotdon

linux - 检查二进制文件是否使用 "-static"编译

我在Linux中有一个二进制文件。如何检查它是否已使用“-static”编译? 最佳答案 ldd/path/to/binary如果二进制文件是静态编译的,则不应列出任何共享库。 关于linux-检查二进制文件是否使用"-static"编译,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/8040631/

linux - 检查二进制文件是否使用 "-static"编译

我在Linux中有一个二进制文件。如何检查它是否已使用“-static”编译? 最佳答案 ldd/path/to/binary如果二进制文件是静态编译的,则不应列出任何共享库。 关于linux-检查二进制文件是否使用"-static"编译,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/8040631/

linux - Perf 启动开销 : Why does a simple static executable which performs MOV + SYS_exit have so many stalled cycles (and instructions)?

我试图了解如何衡量性能并决定编写非常简单的程序:section.textglobal_start_start:movrax,60syscall然后我用perfstat./bin运行了程序。令我惊讶的是stalled-cycles-frontend太高了。0.038132task-clock(msec)#0.148CPUsutilized0context-switches#0.000K/sec0cpu-migrations#0.000K/sec2page-faults#0.052M/sec107,386cycles#2.816GHz81,229stalled-cycles-fronten

linux - Perf 启动开销 : Why does a simple static executable which performs MOV + SYS_exit have so many stalled cycles (and instructions)?

我试图了解如何衡量性能并决定编写非常简单的程序:section.textglobal_start_start:movrax,60syscall然后我用perfstat./bin运行了程序。令我惊讶的是stalled-cycles-frontend太高了。0.038132task-clock(msec)#0.148CPUsutilized0context-switches#0.000K/sec0cpu-migrations#0.000K/sec2page-faults#0.052M/sec107,386cycles#2.816GHz81,229stalled-cycles-fronten

linux - CMake 提示 "The CXX compiler identification is unknown"

我正在关注这个thread还有这个one在没有sudo许可的情况下构建我自己的KDE。由于工作站上没有安装Git和CMake。我只是将它们都安装在/home/下,并添加了/home//bin和/home//lib到PATH和LD_LIBRARY_PATH。由于KDE构建只支持CMake,不支持配置。所以我必须通过CMake设置前缀,如下所示:cmake~/kde-devel/src/kdelibs-DCMAKE_INSTALL_PREFIX=/home/.此时我得到以下错误:>~/bin/cmake~/kde-devel/src/kdelibs-DCMAKE_INSTALL_PREFI

linux - CMake 提示 "The CXX compiler identification is unknown"

我正在关注这个thread还有这个one在没有sudo许可的情况下构建我自己的KDE。由于工作站上没有安装Git和CMake。我只是将它们都安装在/home/下,并添加了/home//bin和/home//lib到PATH和LD_LIBRARY_PATH。由于KDE构建只支持CMake,不支持配置。所以我必须通过CMake设置前缀,如下所示:cmake~/kde-devel/src/kdelibs-DCMAKE_INSTALL_PREFIX=/home/.此时我得到以下错误:>~/bin/cmake~/kde-devel/src/kdelibs-DCMAKE_INSTALL_PREFI