<div dir="ltr">Hi,<div><br></div><div>I ran into some odd compile problems while trying to compile the powermanagement dataengine after I wrote a service in it:</div><div><br></div><div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">CMakeFiles/plasma_engine_powermanagement.dir/powermanagementengine.o: In function `factory&#39;:</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><b>$src/kde-workspace/plasma/generic/dataengines/powermanagement/powermanagementengine.h</b>:71: multiple definition of `factory::factory(char const*, char const*, QObject*)&#39;</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">CMakeFiles/plasma_engine_powermanagement.dir/plasma_engine_powermanagement_automoc.o:<b>$build/kde-workspace/plasma/generic/dataengines/powermanagement/../../../../../../src/kde-workspace/plasma/generic/dataengines/powermanagement/powermanagementengine.h</b>:71: first defined here</font></div>
<div><br></div><div>$src and $build are in ~/kde/{src,build}</div><div><br></div><div>The same error (multiple definition) occurs for all functions of &quot;factory&quot; class, and for qt_plugin_query_verification_data, qt_plugin_instance, kde_plugin_verification_data, kde_plugin_version.</div>
<div><br></div><div>And all these errors are reported only at <b>kde-workspace/plasma/generic/dataengines/powermanagement/powermanagementengine.h:71</b>, which is &quot;<b>K_EXPORT_PLASMA_DATAENGINE(powermanagement, PowermanagementEngine)</b>&quot;. Also, the two files in the error refer to one same file only.</div>
</div><div><br></div><div>Anyone aware of what this means?</div><div><br></div><div>Cheers,</div><div>Viranch</div><div><br></div></div>