Jump to content

error on compiling (GHandle)


Recommended Posts

Posted

Dear Friends,

I am using ugfx primitives and it works. Now I want to start to use some widgets.
As newbie, I want to use a simple Label widget: so I am following the API guide: http://api.ugfx.io/group___label.html
As specified,I've enabled the following defines in the gfxconf.h file:

GFX_USE_GDISP TRUE
GFX_USE_GWIN TRUE
GDISP_NEED_TEXT TRUE
GWIN_NEED_LABEL TRUE
A font(already tested)


Then in my main.c I have to include,as specified, the following:
#include "gdisp.h"
#include "gfx.h"

Up to this step the compiler gives me NO errors.

Now I am ready to start to write the code to visualize my label,
so I write in my main.c globals:

static GHandle ghLabel1;

At this point the compiler tell me the following error: identifier "GHandle" is undefined

What I forgot to do? Am I missing to include something?

thanks in advance to everybody.
Regards,
Spectre

 

Posted

You never have to include any file other than gfx.h. Please remove the include of the file gdisp.h.

Most likely your issue can be resolved by a simple make clean. If that doesn't fix your problem, can you please attach the following files:

  • gfxconf.h
  • main.c
  • Text file containing entire compiler output log

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...