strange error :x

Login to reply to this topic.
Fri, 2005-02-04 08:48
Joined: 2005-01-19
Forum posts: 46
hi evrybody,
i m begginer,

i m creating a simple application, in which a list box is there.
From menu i m trying to display a form.
For the form, i have created a form class which i have derived from CAknForm.

The problem is when i compile the code i get 7 strange errors as follows:


1) syntax error : missing ';' before type 'void'
2) e' : missing storage-class or type specifiers
3) unexpected end of file found

These 3 errors point to the file : ( c:\...\Epoc32\Include\e32def.h)
Some part of the code in this file is as follows:

******************************************************
------
------
------
#define VA_ARG(ap,type) ((ap)[0]+=((sizeof(type)+sizeof(TInt)-1)&~(sizeof(TInt)-1)),(*(type *)((ap)[0]-((sizeof(type)+sizeof(TInt)-1)&~(sizeof(TInt)-1)))))
#define VA_END(ap) ((ap)[0]=0,(void)0)
#define _FOFF(c,f) ((TInt)(&((c *)0)->f))


typedef void TAny;  //  error pointing this line
typedef signed char TInt8;
typedef unsigned char TUint8;
typedef short int TInt16;
typedef unsigned short int TUint16;
typedef long int TInt32;
typedef unsigned long int TUint32;
typedef signed int TInt;
typedef unsigned int TUint;
typedef float TReal32;
typedef double TReal64;
typedef double TReal;
typedef unsigned char TText8;
typedef unsigned short int TText16;
typedef int TBool;

#define _L8(a) (TPtrC8((const TText8 *)(a)))
#define _S8(a) ((const TText8 *)a)
#define _LIT8(name,s) const static TLitC8<sizeof(s)> name={sizeof(s)-1,s}
------
------
------
******************************************************

Next three error i get are line like this

1) missing ';' before type 'CEikListBox'
2) 'e' : missing storage-class or type specifiers
3) unexpected end of file found

These 3 errors point to this file
******************************************************
// EIKLBO.H//
// Copyright (c) 1997-1999 Symbian Ltd.  All rights reserved.
// MEikListBoxObserverClass


#if !defined(__EIKLBO_H__)
#define __EIKLBO_H__

class CEikListBox; // Error points to this statement

class MEikListBoxObserver
   {
public:
   enum TListBoxEvent
      {
      EEventEnterKeyPressed,
      EEventItemClicked,
      EEventItemDoubleClicked,
      EEventItemActioned,   // reported by dir tree and dir contents listboxes
      EEventEditingStarted,
      EEventEditingStopped
      };
public:
   virtual void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aEventType)=0;
   };

#endif
******************************************************


The last error i get is

1) "function '__thiscall CPrj1Form::CPrj1Form(void)' already has a body"

This points to the default  constructor i have specified in my form class
******************************************************
CPrj1Form::CPrj1Form()
    {                                  // Error Points to this line
    }
******************************************************


I havent even opened the first 2 files yet
What might be the problem?

thnx
rahul

Fri, 2005-02-04 09:00
Joined: 2004-05-26
Forum posts: 73
strange error :x
There's probably an error in the file where you include those header files. If you could post the first part of that file, I can take a look at it...
Fri, 2005-02-04 09:12
Joined: 2005-01-19
Forum posts: 46
strange error :x
hi arno,
thnx for replying,

i have checked files,
i have not included these"EIKLBO.H" & "e32def.h" files anywhere
some of the  files i have included are "eiktxlbx.h", "aknlists.h"

rahul
  • Login to reply to this topic.