LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1223|回复: 8

用置顶文章中介绍顶方法安装zhcon怎么不行啊?

[复制链接]
发表于 2004-4-4 13:29:35 | 显示全部楼层 |阅读模式
出了两个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了:-(
 楼主| 发表于 2004-4-4 13:31:56 | 显示全部楼层
我估计可能是加#includ <cassert>时出顶问题。
时在每个#include……之后都加一句还是每个文档只加一句?
 楼主| 发表于 2004-4-6 23:30:13 | 显示全部楼层
原来默认安装没有装assert.h头文件
装上了就成了
呵呵
发表于 2004-4-21 16:01:53 | 显示全部楼层
I have the same problem with u,the same make error log
But after includ file assert.h,it's no need to me
Anyone can tell me WHY?
and the 'tgetend' & 'tgetstr'
Thanks a lot
发表于 2004-4-21 16:14:37 | 显示全部楼层
The error log didn't say 'undeclared assert.h',think it's not the problem of assert.h
Someone in form said the problem on gcc3.3,i'm not sure...
发表于 2004-4-21 16:21:57 | 显示全部楼层
是gcc默认得头文件搜索路径的问题。或者你的gcc没有安装完全。
发表于 2004-4-21 22:48:28 | 显示全部楼层
MD Athlon XP 3200+ Box
DICK PC3200 DDRSDRAM 512MB*2 CL3
MS AK47-N2 Delta (American Force2 400 SB)
ASS AGP-V9950 GE/128 (nVidia GeForce FX5900)
SEE-GATE ST3200822A (200GB U100 7200 8M CACHE)
PIONEER DVR-A
发表于 2004-4-22 14:38:56 | 显示全部楼层
i tried to reinstall gcc ,still went on Error
About gcc searching path,known a little.....

now the problem has been solved by install zhcon-0.2.3.i386.rpm for rh9.but it's not the right way to solve problem.....i think
发表于 2004-4-23 08:41:45 | 显示全部楼层
最初由 inquirefor 发表
i tried to reinstall gcc ,still went on Error
About gcc searching path,known a little.....

now the problem has been solved by install zhcon-0.2.3.i386.rpm for rh9.but it's not the right way to solve problem.....i think

It's another way to solve the problem. Your purpose is to use zhcon, not just install it, aren't you?;)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表