-
undefined identifier iEikonEnv - 2006-08-14 12:42#1
- Join Date
- Aug 2006
- Posts
- 3
hi
i am trying to get into symbian c++ development. i have no background whatsoever with symbian.
i am using carbide.c++ with a nokia n91 (s60 3rd edition).
the hello world app compile and run perfectly, but when i use iEikonEnv->TitleFont();in my program i get an error: undefined identifier iEikonEnv. this happens wherever i have iEikonEnv, not only for TitleFont();
i have this in my AppView class.
can anyone please shed some light on this as i can not find a solution anywhere.
thanx -
Re: undefined identifier iEikonEnv - 2006-08-14 13:44#2
- Join Date
- Feb 2006
- Location
- Budapest, Hungary
- Posts
- 21,552
iEikonEnv is a bit tricky: it is not a variable, it is a macro defined in eikdef.h (it is casting the existing iCoeEnv to a CEikonEnv*). Make sure it is included (and you may also need to include eikenv.h).
-
Re: undefined identifier iEikonEnv - 2006-08-14 14:10#3
- Join Date
- Aug 2006
- Posts
- 3
thanx alot
i just have not included the two header files. my tutorial says nothing about them.
maybe now i can FINALLY get to display my own stuff :)
cheers -
Re: undefined identifier iEikonEnv - 2009-05-21 14:07#4
- Join Date
- Jan 2009
- Posts
- 20
Originally Posted by wizard_hu_
iEikonEnv is a bit tricky: it is not a variable, it is a macro defined in eikdef.h (it is casting the existing iCoeEnv to a CEikonEnv*). Make sure it is included (and you may also need to include eikenv.h).
even after including above 2 files im having same error. Please suggest me something.
Sagar Kasture
-
Re: undefined identifier iEikonEnv - 2009-05-21 14:12#5
- Join Date
- Jul 2007
- Posts
- 582
Originally Posted by sagar_kasture
even after including above 2 files im having same error. Please suggest me something.
what is the error msg??
-
Re: undefined identifier iEikonEnv - 2009-05-22 06:11#6
- Join Date
- Jan 2009
- Posts
- 20
error is : undefined identifier 'iCoeEnv'
im geting it for line
CEPGAppUi* appUi = (CEPGAppUi*)iEikonEnv->AppUi();Sagar Kasture
-
Re: undefined identifier iEikonEnv - 2009-05-22 06:15#7
- Join Date
- Mar 2004
- Location
- Singapore
- Posts
- 9,383
Originally Posted by sagar_kasture
error is : undefined identifier 'iCoeEnv'
im geting it for line
CEPGAppUi* appUi = (CEPGAppUi*)iEikonEnv->AppUi();on which class you are calling verify that you have a member variable iEikonEnv
-
Re: undefined identifier iEikonEnv - 2009-05-22 10:04#8
- Join Date
- Jan 2009
- Posts
- 20
how do i find out if the variable is member of my class. For other classes doing same is working.
Sagar Kasture
-
Re: undefined identifier iEikonEnv - 2009-05-22 10:32#9
- Join Date
- Jul 2007
- Posts
- 582
Originally Posted by sagar_kasture
error is : undefined identifier 'iCoeEnv'
im geting it for line
CEPGAppUi* appUi = (CEPGAppUi*)iEikonEnv->AppUi();Try this way rather
Code:
CCoeEnv::static()->AppUi()
include apropriate headers and lib