Power management dataengine: Odd compile error

Viranch Mehta viranch.mehta at gmail.com
Sun May 29 14:02:07 CEST 2011


Hi,

I ran into some odd compile problems while trying to compile the
powermanagement dataengine after I wrote a service in it:

CMakeFiles/plasma_engine_powermanagement.dir/powermanagementengine.o: In
function `factory':
*
$src/kde-workspace/plasma/generic/dataengines/powermanagement/powermanagementengine.h
*:71: multiple definition of `factory::factory(char const*, char const*,
QObject*)'
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: first defined here

$src and $build are in ~/kde/{src,build}

The same error (multiple definition) occurs for all functions of "factory"
class, and for qt_plugin_query_verification_data, qt_plugin_instance,
kde_plugin_verification_data, kde_plugin_version.

And all these errors are reported only at *
kde-workspace/plasma/generic/dataengines/powermanagement/powermanagementengine.h:71
*, which is "*K_EXPORT_PLASMA_DATAENGINE(powermanagement,
PowermanagementEngine)*". Also, the two files in the error refer to one same
file only.

Anyone aware of what this means?

Cheers,
Viranch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20110529/e7df475b/attachment.htm 


More information about the Plasma-devel mailing list