|
出了两个erro
make之后请高手指点
谢谢!
vi inputclient.h
#include "console.h"
#include <cassert>
/**
*@author ejoy
*/
using namespace std;
class InputServer;
class InputClient {
public:
InputClient();
virtual ~InputClient();
static void SetConsole(Console* pCon) {
assert(pCon);
mpCon = pCon;
}
virtual void Update() = 0;
virtual void Hide() = 0;
virtual void Show() = 0;
virtual void VtSizeDelta(int &ColDelta, int &RowDelta) = 0;
bool Visible() { return mVisible; }
virtual void Connect(InputServer *pServer) = 0;
void DisConnect() { mpServer = NULL; }
protected:
void SetColor(string & s);
static Console* mpCon;
int mFgColor, mBgColor, mColor1, mColor2;
int mPixLight, mPixDark;
bool mVisible;
InputServer *mpServer;
};
#endif
"inputclient.h" 60L, 1987C
#ifdef HAVE_CONFIG_H
#include <config.h>
#include <cassert>
#endif
vi mouse.h
#ifdef HAVE_GPM_H
#include <gpm.h>
#include <cassert>
#elif defined(__FreeBSD__)
#if __FreeBSD__ < 5
#include <machine/mouse.h>
#include <cassert>
#else
#include <sys/mouse.h>
#include <cassert>
#endif
#include <sys/consio.h>
#include <cassert>
//#include <machine/console.h>
#include <cassert>
#include <sys/time.h>
#include <cassert>
#endif
#include "console.h"
#include <cassert>
class Mouse {
public:
#if defined(__FreeBSD__)
static void SignalProcess(int signo);
static Mouse* pMouse;
#endif
Mouse();
~Mouse();
。/configure之后
Configuration:
Target system: i686-pc-linux-gnu
Source code location: .
C++ Compiler: g++
C++ Compiler flags: -funsigned-char -march=i686 -DNDEBUG -Wall
C Compiler: gcc
C Compiler flags: -funsigned-char -march=i686 -DNDEBUG -Wall
VGA support: yes
gpm moues support: yes
libggi support: no
unicon support: no
zhcon binary dir: /usr/local/bin
zhcon files dir: /usr/local/lib/zhcon
Config complete, now type make to build zhcon.
Good Luck!
SuSE:~/Desktop/zhcon-0.2.3 #
make后
In file included from /usr/include/g++/backward/strstream:51,
from zhcon.cpp:23:
/usr/include/g++/backward/backward_warning.h:32:2: warning: #warning This file includes at least one d header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Ex ting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated head sable this warning use -Wno-deprecated.
zhcon.cpp:62:18: term.h: No such file or directory
zhcon.cpp:262:6: warning: #warning OPEN_MAX undefined so far,try define it to 64
zhcon.cpp: In member function `void Zhcon::InitTty()':
zhcon.cpp:433: error: `tgetent' undeclared (first use this function)
zhcon.cpp:433: error: (Each undeclared identifier is reported only once for
each function it appears in.)
zhcon.cpp:444: error: `tgetstr' undeclared (first use this function)
make[3]: *** [zhcon.o] Error 1
make[3]: Leaving directory `/root/Desktop/zhcon-0.2.3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/Desktop/zhcon-0.2.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Desktop/zhcon-0.2.3'
make: *** [all] Error 2
然后就不能makeinstall了:-( |
|