<div dir="ltr">Hey!<div><br></div><div>Aaron's suggestion worked :)</div><div><br></div><div>But I don't understand, it compiled fine earlier. After I added the service and the job (not touching the engine.{h,cpp} at all), the compilation broke!</div>
<div><br></div><div>Cheers,</div><div>Viranch<br><br><div class="gmail_quote">On Mon, May 30, 2011 at 12:56 AM, Marco Martin <span dir="ltr"><<a href="mailto:notmart@gmail.com">notmart@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On Sun, May 29, 2011 at 2:02 PM, Viranch Mehta <<a href="mailto:viranch.mehta@gmail.com">viranch.mehta@gmail.com</a>> wrote:<br>
> Hi,<br>
> I ran into some odd compile problems while trying to compile the<br>
> powermanagement dataengine after I wrote a service in it:<br>
> CMakeFiles/plasma_engine_powermanagement.dir/powermanagementengine.o: In<br>
> function `factory':<br>
> $src/kde-workspace/plasma/generic/dataengines/powermanagement/powermanagementengine.h:71:<br>
> multiple definition of `factory::factory(char const*, char const*,<br>
> QObject*)'<br>
> CMakeFiles/plasma_engine_powermanagement.dir/plasma_engine_powermanagement_automoc.o:$build/kde-workspace/plasma/generic/dataengines/powermanagement/../../../../../../src/kde-workspace/plasma/generic/dataengines/powermanagement/powermanagementengine.h:71:<br>
> first defined here<br>
> $src and $build are in ~/kde/{src,build}<br>
> The same error (multiple definition) occurs for all functions of "factory"<br>
> class, and for qt_plugin_query_verification_data, qt_plugin_instance,<br>
> kde_plugin_verification_data, kde_plugin_version.<br>
> And all these errors are reported only at<br>
> kde-workspace/plasma/generic/dataengines/powermanagement/powermanagementengine.h:71,<br>
> which is "K_EXPORT_PLASMA_DATAENGINE(powermanagement,<br>
> PowermanagementEngine)". Also, the two files in the error refer to one same<br>
> file only.<br>
> Anyone aware of what this means?<br>
<br>
<br>
</div></div>Seeing how you did modify the headers could help ;)<br>
<br>
Cheers,<br>
<font color="#888888">Marco Martin<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
</div></div></blockquote></div><br></div></div>