错误打印输出是......
dab_dct.c: In function 'fDCT2':
dab_dct.c:251:44: error: 'M_PI' undeclared (first use in this function)
output[i] += (double) input[j] * cos((M_PI / len) * (0.5 + j) * i);
^~~~
dab_dct.c:251:44: note: each undeclared identifier is reported only once for each function it appears in
dab_dct.c: In function 'iDCT2':
dab_dct.c:274:30: error: 'M_PI' undeclared (first use in this function)
sum += input[j] * cos(((M_PI * j) / len) * (0.5 + i));
^~~~
dab_dct.c: In function 'evalMostExtreme':
dab_dct.c:289:15: warning: variable 'pos' set but not used [-Wunused-but-set-variable]
unsigned int pos = 0;
^~~
make[1]: *** [libdieharder_la-dab_dct.lo] Error 1
make[1]: Leaving directory `/f/dieharder-3.31.1/libdieharder'
make: *** [libwulf.time] Error 2
我的源代码是......
abstract class GameObject
{
public abstract void Move();
public abstract void Draw(Graphics g);
}
class Pacman : GameObject
{
public override void Move()
{
//Update the Position of Pacman, check for collisions, ...
}
public override void Draw(Graphics g)
{
//Draw Pacman at his x and y coordinates
}
}
class Monster : GameObject
{
public override void Move()
{
//Update the Position of the Monster, ...
}
public override void Draw(Graphics g)
{
//Draw the Monster at his current position
}
}
class GameClass
{
private Pacman _pacman;
private Monster _monster;
private List<GameObject> _gameobjects = new List<GameObject>();
public GameClass()
{
_pacman = new Pacman();
_monster = new Monster();
_gameobjects.Add(_pacman);
_gameobjects.Add(_monster);
}
private void TimerTick()
{
//update all GameObjects
foreach (var gameobject in _gameobjects)
{
gameobject.Move();
}
//Draw every single GameObject to the Bitmap
Bitmap bitmap = new Bitmap(panBox.Width, panBox.Height);
using (Graphics g = Graphics.FromImage(bitmap))
{
foreach (var gameobject in _gameobjects)
{
gameobject.Draw(g);
}
}
//Draw the Bitmap to the screen
using (Graphics g = panBox.CreateGraphics())
{
g.DrawImage(bitmap, 0, 0);
}
}
答案 0 :(得分:0)
请忽略我的问题。我忘了启动我的Tomcat7 localhost。现在它正在运行并且我正在获得更易于管理的404错误。任何不便敬请谅解。不过,我很高兴加入集团。