> 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