3 ms·
Dynamically linked libraries are actually a little problem in Go. Library is opened via dlopen()/LoadLibrary() and symbols needed are looked up by the Go code,
by vetinari 15y ago
Dynamically linked libraries are actually a little problem in Go. Library is opened via dlopen()/LoadLibrary() and symbols needed are looked up by the Go code, not by system dynamic linker.
- 4ad 15y agoThat's not true at all. In the few cases where dynamic linking is involved, it works just as you'd expect it to be.
- vetinari 15y agoGo does not use native dynamic linker. Please check package syscall, specifically src/pkg/syscall/dll_windows.go. You will see for yourself, how it is implemented.