[Shapelib] Hellp Please with unix compilation

Yasir Malik ymalik at cs.stevens-tech.edu
Fri Jan 28 07:01:35 PST 2005


> c++ ISO forbifd cast to nonreference type used as lvalue in the following
> line (marked with number 1) I get several of this errors
Perhaps you can try compling with gcc, not g++

> 1)	((void *) newDBF->pszHeader) = (void *) malloc(32 * psDBF->nFields);

Try:
newDBF->pszHeader = (char *) malloc(32 * psDBF->nFields);

Yasir



More information about the Shapelib mailing list