[Scummvm-devel] Link errors in cruise and Graphics::FontTowns

Willem Jan Palenstijn wjp at usecode.org
Sun Jul 12 23:59:31 CEST 2009


On Sun, Jul 12, 2009 at 05:32:14PM +0200, Rainer M. Canavan wrote:
> Hi,
> 
> I'm getting a few linker errors in trunk when cruise, kyra or sci are 
> enabled.  The sjis/FontTonwns problem looks like just another problem
> with templates of the IRIX mipspro compiler. The drawCharIntern(Outline)
> show up as UNDEF in the .o file already. I'm not sure what's causing
> the problem in cruise. Does anyone here have suggestions how to fix
> either problem?

It might not do anything, but maybe try adding explicit instantiations
of the templates that aren't found to ctp.cpp?

For example, for the copy/copy_backward ones, you could use:

template Cruise::CtEntry* Common::copy<Cruise::CtEntry*, Cruise::CtEntry*>(Cruise::CtEntry*,Cruise::CtEntry*,Cruise::CtEntry*);
template Cruise::CtEntry* Common::copy_backward<Cruise::CtEntry*, Cruise::CtEntry*>(Cruise::CtEntry*,Cruise::CtEntry*,Cruise::CtEntry*);

(They go directly below the #includes in engines/cruise/ctp.cpp, above
the "namespace Cruise {".)


-Willem Jan




More information about the Scummvm-devel mailing list