[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-user
Subject: error compiling kdehelp
From: Andreas Wittrock <in5y483 () public ! uni-hamburg ! de>
Date: 1997-08-05 14:13:17
[Download RAW message or body]
Hi out there!
Subject says it, I try try to compile kadebase (patches up to 05. Aug. 97 added) from \
the tgz archive, but it stops inside kdehelp with an errormessage \
like this:(
..
In file included from main.cpp:15:
khelp.h:19: syntax error before `protected`
make: *** [main.o] error 1
..
khelp.h looks like this:
//-----------------------------------------------------------------------------
//
// KDE Help Window Controller (eventually)
//
// (c) Martin R. Jones 1996
//
#ifndef __KHELP_H__
#define __KHELP_H__
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#ifdef __FreeBSD__
#define msgbuf mymsg
#endif
class KHelpMsg protected : msgbuf
{
public:
int send( int msgqid, int flags = 0 )
{ return msgsnd( msgqid, this, size(), flags ); }
int recv( int msgqid, long type, int flags = IPC_NOWAIT )
{ return msgrcv( msgqid, this, size(), type, flags ); }
void setCommand( int cmd )
{ mcommand = cmd; }
void setType( int type )
{ mtype = type; }
void setMsg( const char *_msg )
{ strcpy( msg, _msg ); }
int getType() const
{ return mtype; }
const char *getMsg() const
{ return msg; }
static int size()
{ return sizeof(KHelpMsg) - sizeof(long); }
private:
int mcommand;
char msg[256];
};
#endif
Someone to help? I'm using a NetBSD/arm32 system with gcc 2.7.2.1 an
static libs. Thanks in advance.
--
Andreas Wittrock, mailto:in5y483@public.uni-hamburg.de
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic