Hi, It looks like the compiler thinks that "start" and "(p-1)->pixel" are not the same type. I'd suggest that you verify that start has the type pixel. Do the flags -Wall -W for gcc give any hints when compiling draw.c?
Tom On Tue, 29 Aug 2000, Randy Polson wrote: >My goal is to compile ImageMagick5.2.2 with AIX4.2 and compiler xlc. In >the IM file draw.c the xlc compiler crashes at the following line(line 1439) > p->pixel=p == primitive_info ? start : (p-1)->pixel; > >with the error message: > >"draw.c", line 1439.49: 1506-127 (S) The second and third operands of the conditional operator must have compatible struct or union types. >make[1]: *** [draw.lo] Error 1 > >gcc compiles and builds the libraries and utilities correctly but adds the >symbol >"__eprintf". This symbol hangs up the dx configure script when using >CC=xlc when checking for GetImageInfo() in the ImageMagick library. > >Any sugestions would be greatly appreciated. >Thanks, >Randy >
