- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
为方便起见,我在下面添加了相关联机帮助页。
首先我的(错误)理解:如果我需要用 ,
分隔选项,那意味着第二个 -Wl
不是另一个选项,因为它在 之前>,
这意味着它是 -rpath
选项的参数。
我不明白 -rpath
怎么会有 -Wl,.
参数!
在我看来有意义的是:
-Wl,-rpath .
这应该使用当前目录参数调用 -rpath
链接器选项。
man gcc:
-Wl,option
Pass option as an option to thelinker. If option contains commas, itis split into multiple options at thecommas. You can use this syntax topass an argument to the option. Forexample,
-Wl,-Map,output.map
passes-Map output.map
to the linker. Whenusing the GNU linker, you can also getthe same effect with`-Wl,-Map=output.map'.
男人 ld:
-rpath=dir
Add a directory to theruntime library search path. This isused when linking an ELF executablewith shared objects. All -rpatharguments are concatenated and passedto the runtime linker, which uses themto locate shared objects at runtime.The -rpath option is also used whenlocating shared objects which areneeded by shared objects explicitlyincluded in the link;
最佳答案
gcc 的 -Wl,xxx
选项将逗号分隔的标记列表作为空格分隔的参数列表传递给链接器。所以
gcc -Wl,aaa,bbb,ccc
最终成为链接器调用
ld aaa bbb ccc
在你的例子中,你想说“ld -rpath .
”,所以你将它作为 -Wl,-rpath,.
传递给 gcc 或者,你可以指定 -Wl
的重复实例:
gcc -Wl,aaa -Wl,bbb -Wl,ccc
注意 aaa
和第二个 -Wl
之间没有逗号。
或者,在您的情况下,-Wl,-rpath -Wl,.
。
关于gcc - 我不明白 -Wl,-rpath -Wl,,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41455979/
为了方便起见,我在下面添加了相关的联机帮助页。 我的(错误)理解首先:如果我需要用 , 分隔选项,这意味着第二个 -Wl 不是另一个选项,因为它位于 之前>, 这意味着它是 -rpath 选项的参数。
为方便起见,我在下面添加了相关联机帮助页。 首先我的(错误)理解:如果我需要用 , 分隔选项,那意味着第二个 -Wl 不是另一个选项,因为它在 之前>, 这意味着它是 -rpath 选项的参数。 我不
我正在使用 https://github.com/jaredhanson/passport-windowslive用于为我的 NodeJS 应用程序实现 Microsoft 帐户身份验证的 NPM 包
在 GCC 中使用标志“-Wl,--no-undefined -Wl,--no-allow-shlib-undefined”会导致 Travis CI 镜像出现以下编译错误,但不会出现在我的机器上(两
在我们的项目中,我们试图弄清楚连接到服务器的最佳过程是什么 - 特别是在处理离线/在线场景等时。 现在,对我们来说,连接到 WL 服务器的所有三个选项似乎都是相似的。无论我们使用什么选项,我们都可以完
与此问题相关: Uncaught TypeError: Cannot use 'in' operator to search for 'SUPPORT_COOKIES' in null 但由于 Jas
我们有一个在 JDev 11.1.1.2 中运行的安全网络服务,使用 Weblogic.jar v10.3.2。但在使用 Weblogic.jar v10.3.5 的 JDev 11.1.1.6 中不
我是代码库的新手,正在查看 Makefile。我看到几个用 -Wl, 前缀指定的编译器标志(即 -Wl,--no-undefined 指定)。我以前没有遇到过这种语法,很难谷歌搜索。 前缀是做什么的?
基本上我想在自定义字典中使用库: 编译器参数: gcc -o conftest -Wl,-rpath=/MYPATH/ssl/lib -O2 -Wno-system-headers -I/MYPAT
我正在使用 gcc 4.7.2 版的 Ubuntu 12.10。 我正在尝试制作以下 makefile: CC = g++ CCFLAGS = -fPIC -O3 -Wall -ffast-math
我一直使用 Solana-labs / token-list Github 上的 repo ( https://github.com/solana-labs/token-list ) 将图像和名称上传
是否有一种好的/可接受的方法来获得两种以上的替代布局,特别是支持可选空间的方式? 特别是,我可能想通过以下三种方式之一打印列表: [1, 2, 3, 4, 5] [1,2,3,4,5] [ 1 , 2
我一直使用 Solana-labs / token-list Github 上的 repo ( https://github.com/solana-labs/token-list ) 将图像和名称上传
我已经构建了一个共享库libC.so,它依赖于libA.so和libB.so。然后我通过命令使用 libC.so 构建 test.c: gcc test.c -o test -fPIC -I./ -L
我正在使用 IBM Mobilefirst Platform 7.1。我正在尝试覆盖 Android 中后退按钮的标准行为。我创建了新的 Mobilefirst 项目“Hello Mobilefirs
对于新的 Worklight v6.2,是否有我们使用 WL.App.sendActionToNative 的示例场景(除了更新 UI 上的文本)? 也许这可以替代一些插件?比如 phonediale
问题我遇到的问题是,当我尝试从我的 parent 那里调用第二个 WL.api 时,因为我需要第一个 api 的 data 输出,脚本 似乎中断了。我没有从第二个 api 得到任何错误响应。如果有人能
在我的 Windows Phone 应用程序中,我使用带有单一范围 wl.signin 的 SignInButton 来连接 Microsoft Live 帐户。输入电子邮件和密码后,API 会向我显
我尝试使用 GNU 链接器功能“-wrap=symbol”来拦截大型应用程序对 malloc() 的所有调用。该应用程序正在使用一大堆共享库。 链接器阶段如下所示: g++ -Wl,-wrap=mal
根据GCC 6.1 manual on Link Options : -Wl, option Pass option as an option to the linker. If option con
我是一名优秀的程序员,十分优秀!