[gradsusr] facing problem during gards-2.0.a9 installation

Jennifer Adams jma at cola.iges.org
Thu Nov 18 09:22:58 EST 2010


The #ifdef and #endif statements need to bracket the entire  
subroutine, like this:

#if USESHP==1
struct dbfld* newdbfld (char *fldname, DBFFieldType dbtype, gaint len,  
gaint prec,
			gaint flag, char *val) {
...
  }
#endif

--Jennifer


On Nov 18, 2010, at 4:54 AM, Richa Sharma wrote:

> Hi Jennifer Adams,
>
> Thanks for your valuable support. I have edited in gagx.c according  
> to your reply. But still i am facing the problem .  Exception is :-
>
> Making all in src
> make[1]: Entering directory `/usr/local/grads-2.0.a9/src'
> make  all-am
> make[2]: Entering directory `/usr/local/grads-2.0.a9/src'
> gcc -DHAVE_CONFIG_H -I.  -I/usr/include         -I/usr/X11R6/ 
> include  -I/usr/include     -g -O2 -rdynamic -c gagx.c
> gagx.c:3882: error: syntax error before "DBFFieldType"
> gagx.c:3884:16: warning: extra tokens at end of #ifdef directive
> gagx.c: In function `newdbfld':
> gagx.c:3891: error: invalid application of `sizeof' to incomplete  
> type `dbfld'
> gagx.c:3893: error: dereferencing pointer to incomplete type
> gagx.c:3893: error: `fldname' undeclared (first use in this function)
> gagx.c:3893: error: (Each undeclared identifier is reported only once
> gagx.c:3893: error: for each function it appears in.)
> gagx.c:3894: error: dereferencing pointer to incomplete type
> gagx.c:3894: error: `dbtype' undeclared (first use in this function)
> gagx.c:3895: error: dereferencing pointer to incomplete type
> gagx.c:3895: error: `len' undeclared (first use in this function)
> gagx.c:3896: error: dereferencing pointer to incomplete type
> gagx.c:3896: error: `prec' undeclared (first use in this function)
> gagx.c:3897: error: dereferencing pointer to incomplete type
> gagx.c:3897: error: `flag' undeclared (first use in this function)
> gagx.c:3906: error: `val' undeclared (first use in this function)
> gagx.c:3907: error: dereferencing pointer to incomplete type
> gagx.c:3910: error: dereferencing pointer to incomplete type
> gagx.c:3912: error: dereferencing pointer to incomplete type
> make[2]: *** [gagx.o] Error 1
> make[2]: Leaving directory `/usr/local/grads-2.0.a9/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/usr/local/grads-2.0.a9/src'
> make: *** [all-recursive] Error 1
>
>
> Please help me to install grads new version. I am also attaching  
> gagx.c with this mail for your reference..
>
> Thanks & Regards
> Richa Sharma
> <gagx.c>_______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr

--
Jennifer M. Adams
IGES/COLA
4041 Powder Mill Road, Suite 302
Calverton, MD 20705
jma at cola.iges.org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20101118/cda122ce/attachment-0003.html 


More information about the gradsusr mailing list