x1314aq's recent timeline updates
x1314aq

x1314aq

🏢  华为技术有限公司
V2EX member #380368, joined on 2019-01-26 22:16:08 +08:00
Per x1314aq's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
x1314aq's recent replies
Aug 25, 2022
Replied to a topic by lau52y 问与答 求 Mac 流畅高清的远程工具
parsec ?
看学校,目前国内的除清华和北大之外,已经不再审批 offer ;海外(包括香港) top50 院校的留学生还可以走 23 届校招。
Nov 9, 2019
Replied to a topic by Yggdroot Vim vim 的模糊查找插件 LeaderF 新功能介绍(二)
支持,一直在用的插件,越来越好用了
valgrind
Sep 27, 2019
Replied to a topic by BruceAuyeung 程序员 c++动态调用链接库的问题
完全可以,dlopen()系列函数就是为这个而生的
Sep 22, 2019
Replied to a topic by phperstar macOS mac 终端问题咨询
如果你用的 bash 的话,在脚本最前面加入

set -x

再跑一下,就可以看到出错的地方了
@klesh 厉害,用 QT 写的跨平台问题应该不大吧
@b00tyhunt3r 父进程执行完 fork()后就正常退出了,return 0 正常退出了;子进程被 init 收养,然后子进程的 execve 失败,pintf 出来的 ppid=1 ;你要想像正常的多进程程序那样,得加一个 else 分支,在 else 分支里,父进程调用 wait(),等待子进程结束
@zacharyjia #12 不只针对动态库,对当前可执行文件也适用的,第一个参数传 NULL 即可;

具体参考 man dlopen
直接通过 dlsym()就可以拿到函数地址,不需要其他别的任何操作。
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3121 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 17ms · UTC 14:46 · PVG 22:46 · LAX 07:46 · JFK 10:46
♥ Do have faith in what you're doing.