[GRASS-dev] Parsing Float type
Glynn Clements
glynn at gclements.plus.com
Thu Oct 28 12:25:09 EDT 2010
António Rocha wrote:
> I have a GRASS C module where I need to parse a FLOAT. I tried this:
> parm.k = G_define_option();
> parm.k->key = "k";
> parm.k->type = TYPE_FLOAT;
> parm.k->key_desc = "k parameter";
> parm.k->required = YES;
> parm.k->description =
> _("k parameter");
>
> but I gopt this error while compiling:
> main.c:97: error: �TYPE_FLOAT� undeclared (first use in this function)
> main.c:97: error: (Each undeclared identifier is reported only once
> main.c:97: error: for each function it appears in.)
> So it does not recognize TYPE_FLOAT (I had TYPE_INTEGER)
>
> What is suppose to be?
TYPE_DOUBLE
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list