https://howistart.org/posts/cpp/1/index.html

就是利用dlopen,比较简单这里直接放代码了

https://github.com/jsbruglie/replex