[GRASSLIST:7231] Re: Compile Errors continue in 6.0.0

Thomas Colson tom_colson at ncsu.edu
Sun Jun 19 18:59:24 EDT 2005


Removing
> Try removing the following lines from lib/gmath/numeric.h:
>
>         /* jacobi.c */
>         #define MC 50
>         extern char outputfile[50];
>         extern char groupname[50], subgroup[50], signame[50];


>From numeric.h seemed to do the trick, in 6.0.0 and 6.1 "unstable" (latest
CVS).

thanks for all your replies....look forward to my incessant complaining
about v.in.ascii soon.......


;)

















>> > cd gmath
>> > make
>> > gcc -I/grass/grass-6.0.0/include
>> > -I/grass/grass-6.0.0/dist.x86_64-unknown-linux-gnu/include/grass  -g
>> -O2
>> > -Wall -Wconversion -Wno-implicit-int   -fPIC
>> -DPACKAGE=\""grasslibs"\"
>> >     -DPACKAGE=\""grasslibs"\"  -I/grass/grass-6.0.0/include
>> > -I/grass/grass-6.0.0/dist.x86_64-unknown-linux-gnu/include/grass \
>> >         -o OBJ.x86_64-unknown-linux-gnu/del2g.o -c del2g.c
>> > In file included from del2g.c:23:
>> > numerical.h:47: error: array type has incomplete element type
>>
>> Odd.
>>
>> Try removing the following lines from lib/gmath/numeric.h:
>>
>> 	/* jacobi.c */
>> 	#define MC 50
>> 	extern char outputfile[50];
>> 	extern char groupname[50], subgroup[50], signame[50];
> ...
>> > What could be causing this?
>>
>> The above error regarding line 47 of numerical.h. line 47 appears
>> empty, but the jacobi.c section is the closest match,
>
> Note that in the 6.0.0 source (inferred from the above gcc command) line
> 47
> read as follows:
>
> extern struct Command_keys Command_keys[];
>
>
> This is the line Brad removed 3 weeks ago. The CVS commit comment is
> "Remove unused Command_keys[] for GCC4 compatibility."
>
> http://freegis.org/cgi-bin/viewcvs.cgi/grass6/lib/gmath/numerical.h.diff?r1=2.0&r2=2.1&diff_format=u
>
> I postulate that the problem is already fixed?
>
>
> Thomas wrote:
>>>> In file included from del2g.c:23:
>>>> numerical.h:47: error: array type has incomplete element type
> ..
>> 6.1 snapshot...a few hours? Just updated.
> ..
>> Same errors with 6.0 and 6.1....
>
> Do you still see the error in numerical.h line 47 using the latest CVS??
>
>
>
>
> Hamish
>


-- 
Thomas Colson
Center For%2




More information about the grass-user mailing list