3 ms·
You can call methods by name in c on Posix systems. dlopen can give you a handle to your own main program from which you can look up symbols.
by Null-Set 10y ago
You can call methods by name in c on Posix systems. dlopen can give you a handle to your own main program from which you can look up symbols.
- thristian 10y agoThat depends on executables (such as your own main program) and shared libraries (what dlopen() reads) having the same file format. That's a feature of the ELF executable format commonly used on Linux systems, but isn't necessarily true of other executable formats, like MachO (used on OS X).