我有全新安装的Mac OS 10.7.2。我已经在上面安装SVN,但是,当我尝试调用颠覆,我得到的错误: dyld: Library not loaded: /usr/lib/libpq.5.dylib
Referenced from: /opt/subversion/bin/svn
Reason: no suitable image found. Did find:
我想了解一些关于使用dylib并仍在学习的东西,所以请问如果我问愚蠢的问题。 是否有可能通过dlopen()加载lib来卸载它自己? Ex。在下面的代码中,我们可以只执行hello()代码,然后在最后卸载它。 __attribute__((constructor))
static void hello()
{
// get handle to this dylib some how