I'm compiling "Star Control Timewarp" from http://timewarp.sourceforge.net
The problem is the game requires a variable to be declared at the global scope that is already claimed by a file that appears to be a standard linux math library.
I've taken the liberty or specifying a few other errors I located here as well.
The scope of this question regards the global_scope/new_declaration/ambiguation problem. But I included a little extra for anyone that might know the game or what to do about it.
.../timewarp/src/twgui/utils.h: At global scope:
.../timewarp/src/twgui/utils.h:166: error: new declaration ‘int round(double)’
/usr/include/bits/mathcalls.h:310: error: ambiguates old declaration ‘double round(double)’
Timewarp also requires that several classes have their function declarations corrected as they use the form
class something
{
something::function()
};
in stead of
class something
{
something::function()
};
Timewarp also requests , which is evidently not provided by Allegro 4.2.*, but only as a backup to it's own functions. Omitting the line appears to resolve.
Well, that's easy enough to fix but omitting the ‘int round(double)’ from utils.h produces a wealth of compile errors.
Furthermore, there are several instances where functions are declared in the form
void function();
But not seemingly specified elsewhere. As in "melee.h"'s videowindow class's lock(), unlock(), and deinit() functions, yielding the "undefined reference error.