For dlopen() [and the underlying AIX load()] functions to work, the symbols must be visible. You either need to explicitly export the symbols you will inquire with GCC -Wl,-bE:symbols.exp where symbols.exp contains a single line: foo or use -Wl,-bexpall which will work in this case but may cause problems in more complicated settings.
aix, dlopen(NULL, .), and gcc
最新推荐文章于 2022-11-14 09:00:00 发布