<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="Osso Notes">
<title></title></head>
<body>
<p> Hello,
<br>
<br>----- Original message -----
<br>> I'm trying to use libvlc for a project, and there are several potential
<br>> clashes with libvlccore. The namespace uses in libvlc.so is fine, always
<br>> libvlc_. But libvlc.so is linked against libvlccore.so where the
<br>> namespaces are not consistent.
<br>
<br>Whether it is a problem depends on the platform. Some could consider this is a bug in ELF. Some will say it is a feature (e.g. LD preload).
<br>
<br>But it would be a major PITA to fix in VLC. I do not know if symbol versioning or anything can work-around this.
<br>
<br>> When using libvlc in a program with getopt.. It is necessary to be
<br>> sure that libvlc is initialized _only after_ the use of optind, etc,..
<br>> Otherwise, libvlccore changes the value of optind for example,..
<br>
<br>True. But Libvlc needs to parse its command line afterall. The only "fix" would require inlining getopt_long() which is not particularly clean either. But this is a thread-safety problem, so perhaps it has to be done anyway.
<br>
<br>--
<br>RĂ©mi</p>
</body>
</html>