dynamic linking
I'm working on a library for accessing MIDI hardware, which uses plugins to communicate with the hardware. Now I'm not sure how to compile these shared libraries. Should I use -Bsymbolic? This makes the linker give a warning when the library is not linked against all the shared libraries
it needs itself. Still, I don't seem to be able to use the ALSA library (for rawmidi) when the plugin is not loaded with RTLD_GLOBAL. This may not be a problem, but I'd like to understand why RTLD_LOCAL won't work?
Any help would be appreciated.
--martijn
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [email protected]
Quoted 5 lines
I'm working on a library for accessing MIDI hardware, which uses plugins to communicate with the hardware. Now I'm not sure how to compile these shared libraries. Should I use -Bsymbolic? This makes the linker give a warning when the library is not linked against all the shared libraries
although i hate it in so many ways, i would strongly suggest that you use libtool. there are complexities associated with building shared libs that its better to leave to other tools.
--p
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · Paul Davis
Quoted 5 lines
I'm working on a library for accessing MIDI hardware, which uses plugins to communicate with the hardware. Now I'm not sure how to compile these shared libraries. Should I use -Bsymbolic? This makes the linker give a warning when the library is not linked against all the shared libraries
although i hate it in so many ways, i would strongly suggest that you use libtool. there are complexities associated with building shared libs that its better to leave to other tools.
I wouldn't recommend libtool for .so plugins, it makes a real mess of it.
I link with "ld -shared -Bsymbolic -lc -lm -o $@", but YMMV.
- Steve
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [email protected]