Re: RFC: New dependency on FFmpeg?
Martin Gregorie <[email protected]> Sun, 23 Aug 2015 00:45:08 +0100
| Newsgroups | gmane.comp.emulators.wine.user |
|---|---|
| Organization | Martin Gregorie |
| Message-ID | <[email protected]> |
On Fri, 2015-08-21 at 10:39 +0200, [email protected] wrote: > Hi > > I'd be curious, why wouldnt it be possible to dynamicly load ffmpeg > library if existing in the system. > (via search path, ld path etc.)? > I haven't tried to use ffmpeg, but I have written dynamically loaded libraries as part of a plugin system for an emulator. Both main program and libraries are C code for Linux. The program will compile and link easily enough if your code is compatible with the library function's prototype. However, if the function's interface doesn't match the prototype (which could be the case if the library was replaced with a later version and the caller was not recompiled) or there's a name clash between extern variable names, i.e. the same variable is defined in both library and calling program, then the library will load OK but you'll get a linkage failure at run time. HTH Martin