Power management dataengine: Odd compile error

Viranch Mehta viranch.mehta at gmail.com
Sun May 29 21:43:20 CEST 2011


Hey!

Aaron's suggestion worked :)

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!

Cheers,
Viranch

On Mon, May 30, 2011 at 12:56 AM, Marco Martin <notmart at gmail.com> wrote:

> On Sun, May 29, 2011 at 2:02 PM, Viranch Mehta <viranch.mehta at gmail.com>
> wrote:
> > 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?
>
>
> Seeing how you did modify the headers could help ;)
>
> Cheers,
> Marco Martin
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20110530/22d81a3f/attachment.htm 


More information about the Plasma-devel mailing list