<div dir="ltr">I want to update a library with new symbols (ie partial recompilation):<div><br></div><div>libmylib.so : compiled from bar.d and foo.d</div><div><br></div><div>now update the file foo.d</div><div><br></div><div>dmd -c -fPIC foo.d -offoo.o</div><div><div><br></div></div><div>clang++ -o libmylib_update.so foo.o -shared -Wl,-lmylib</div><div><br></div><div>When trying to dlopen libmylib_update.so from C++ it fails with:</div><div>The module 'foo' is already defined in 'libmylib.so'<br></div><div><br></div><div>(it somehow works when the dlopen is called from D)</div><div><br></div><div>How would I achieve that?</div><div><br></div></div>