[mythtv] Ticket #4422: when linking errors occur while loading plugins, the errors are not displayed correctly
Andrei Tanas
andrei at tanas.ca
Mon Jan 7 18:03:54 UTC 2008
> I am not sure if this is related to this ticket but I believe it may
> be. I have just tried compiling the head revision of svn with the
> backend.patch and the importicons_windows_2.diff and I get the
> following errors:
>
> ../libmythdvdnav/libmythdvdnav-0.20.a(dvdnav.o): In function `dlerror':
> d:/mythtv/mythtv/libs/libmythdvdnav/../libmyth/compat.h:197: multiple
> definition of `dlerror'
As far as I know, only C++ can inline functions. For all C files, the
compiler will create individual definition of the function, this is where
"multiple definitions" error comes from.
Try surrounding the dlerror function in compat.h with
#ifdef __cplusplus
...
#endif
And see if that works.
The usleep function there had the same issue and the same resolution was
used.
Regards,
Andrei.
More information about the mythtv-dev
mailing list