<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>in file include/cln/lfloat_class.h there is the line</p>
<p> static cl_LF_globals_init_helper
cl_LF_globals_init_helper_instance;</p>
<p>Now as far as I can see this will instantiate an instance of
class cl_LF_globals_init_helper in every object file that includes
the header
(<a class="moz-txt-link-freetext" href="https://stackoverflow.com/questions/11967502/okay-to-declare-static-global-variable-in-h-file">https://stackoverflow.com/questions/11967502/okay-to-declare-static-global-variable-in-h-file</a>
seems to support this).</p>
<p>Wouldn't it be better to replace static by extern and define the
instance in some .cc file?</p>
<p>Regards,</p>
<p>Jan Rheinländer<br>
</p>
<p><br>
</p>
</body>
</html>