<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>The #ifdef and #endif statements need to bracket the entire subroutine, like this: </div><div><br></div><div><div>#if USESHP==1</div><div>struct dbfld* newdbfld (char *fldname, DBFFieldType dbtype, gaint len, gaint prec, </div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>gaint flag, char *val) {</div><div>...</div><div> }</div><div>#endif</div></div><div><br></div><div>--Jennifer</div><div><br></div><br><div><div>On Nov 18, 2010, at 4:54 AM, Richa Sharma wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Jennifer Adams,<br><br>Thanks for your valuable support. I have edited in gagx.c according to your reply. But still i am facing the problem . Exception is :-<br><br>Making all in src<br>make[1]: Entering directory `/usr/local/grads-2.0.a9/src'<br> make all-am<br>make[2]: Entering directory `/usr/local/grads-2.0.a9/src'<br>gcc -DHAVE_CONFIG_H -I. -I/usr/include -I/usr/X11R6/include -I/usr/include -g -O2 -rdynamic -c gagx.c<br>gagx.c:3882: error: syntax error before "DBFFieldType"<br> gagx.c:3884:16: warning: extra tokens at end of #ifdef directive<br>gagx.c: In function `newdbfld':<br>gagx.c:3891: error: invalid application of `sizeof' to incomplete type `dbfld'<br>gagx.c:3893: error: dereferencing pointer to incomplete type<br> gagx.c:3893: error: `fldname' undeclared (first use in this function)<br>gagx.c:3893: error: (Each undeclared identifier is reported only once<br>gagx.c:3893: error: for each function it appears in.)<br>gagx.c:3894: error: dereferencing pointer to incomplete type<br> gagx.c:3894: error: `dbtype' undeclared (first use in this function)<br>gagx.c:3895: error: dereferencing pointer to incomplete type<br>gagx.c:3895: error: `len' undeclared (first use in this function)<br>gagx.c:3896: error: dereferencing pointer to incomplete type<br> gagx.c:3896: error: `prec' undeclared (first use in this function)<br>gagx.c:3897: error: dereferencing pointer to incomplete type<br>gagx.c:3897: error: `flag' undeclared (first use in this function)<br>gagx.c:3906: error: `val' undeclared (first use in this function)<br> gagx.c:3907: error: dereferencing pointer to incomplete type<br>gagx.c:3910: error: dereferencing pointer to incomplete type<br>gagx.c:3912: error: dereferencing pointer to incomplete type<br>make[2]: *** [gagx.o] Error 1<br> make[2]: Leaving directory `/usr/local/grads-2.0.a9/src'<br>make[1]: *** [all] Error 2<br>make[1]: Leaving directory `/usr/local/grads-2.0.a9/src'<br>make: *** [all-recursive] Error 1<br><br><br>Please help me to install grads new version. I am also attaching gagx.c with this mail for your reference..<br> <br>Thanks & Regards<br>Richa Sharma<br> <span><gagx.c></span>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></blockquote></div><br><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 12px; "><div>--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></div> </div><br></body></html>