3 ms·
> Go can't dynamically link to C libraries (.so). It can, however, dynamically link to DLLs, which is interesting. Please see my comment here: https://news.yco
by 4ad 13y ago
> Go can't dynamically link to C libraries (.so). It can, however, dynamically link to DLLs, which is interesting.
Please see my comment here: https://news.ycombinator.com/item?id=7679041 https://news.ycombinator.com/item?id=7679041
In short, The Go linker can link with ELF shared objects just fine, just as it can link with PE-COFF shared objects, but it supports only the most basic of relocations in both cases (and this is a property of the design, as we can't expect the presence of the shared object because that would break cross-compilation), and it's not what you probably want anyway.