[Scummvm-devel] PORTERS: Testing needed for GSoC OpenGL Branch

vgvgf vgvgvgf at gmail.com
Sat Aug 7 01:42:56 CEST 2010


Hi,

On Fri, Aug 6, 2010 at 4:41 PM, Marcus Comstedt <marcus at mc.pp.se> wrote:
> Now I can build without compilation errors, but I do get a link error:
>
> |     LINK     scummvm.elf
> | backends/libbackends.a(dc-provider.o): In function `DCPluginProvider::createPlugin(Common::FSNode const&) const':
> | /tmp/gsoc2010-opengl/common/textconsole.h:71: multiple definition of `DCPluginProvider::createPlugin(Common::FSNode const&) const'
> | backends/libbackends.a(dc-provider.o):/tmp/gsoc2010-opengl/common/textconsole.h:71: first defined here
> | backends/libbackends.a(dc-provider.o): In function `DCPluginProvider::isPluginFilename(Common::FSNode const&) const':
> | /tmp/gsoc2010-opengl/backends/plugins/dynamic-plugin.h:90: multiple definition of `DCPluginProvider::isPluginFilename(Common::FSNode const&) const'
> | backends/libbackends.a(dc-provider.o):/tmp/gsoc2010-opengl/backends/plugins/dc/dc-provider.cpp:91: first defined here
> | collect2: ld returned 1 exit status
> | gmake: *** [scummvm.elf] Error 1
>
> The problem is that dc-provider.o is included twice in libbackends.a.
> This comes from it being listed first once unconditionally in
> MODULE_OBJS, and then once more conditioned on $(BACKEND)==dc, in the
> module.mk of backends.
>
> I don't see how this relates to OpenGL support, but on the trunk
> dc-provider.o is not listed in the unconditional block.

I removed from backends/module.mk the duplicate, hope it works well now :)

Regards,
Alejandro




More information about the Scummvm-devel mailing list