[mac-gs] Compiling the head with Metrowerks 7
Erik Strik
estrik@aurelon.com
Sun, 1 Sep 2002 18:53:15 +0200
--Apple-Mail-1-1052387716
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
Hello,
Can anybody help me with a compiling error I experience when trying to=20=
compile the GS head with Metrowerks CodeWarrior 7.
When compiling gscolor3.c I get the following errors:
Warning : illegal empty declaration
gxpcolor.h line 120 extern=20
dev_color_proc_save_dc(gx_dc_pattern_save_dc);
Error : identifier expected
gxpcolor.h line 120 extern=20
dev_color_proc_save_dc(gx_dc_pattern_save_dc);
Error : illegal function definition
gxpcolor.h line 121 extern dev_color_proc_write(gx_dc_pattern_write);
Error : illegal function definition
gxpcolor.h line 122 extern dev_color_proc_read(gx_dc_pattern_read);
Error : illegal function definition
gxpcolor.h line 128 extern=20
dev_color_proc_get_nonzero_comps(gx_dc_pattern_get_nonzero_comps);
When compiling gxwts.c I get the following error:
Error : illegal implicit conversion from 'unsigned char *[4]' to
'const unsigned char **'
gxwts.c line 417 pdevc->colors.wts.plane_vector, invert, w, h);
When compiling gxwts.c I get the following error:
Error : illegal implicit conversion from 'const struct=20
gx_cm_color_map_procs_s *' to
'struct gx_cm_color_map_procs_s *'
gdevdgbr.c line 445 map_procs =3D dev_proc(dev,=20
get_color_mapping_procs)(dev);
When compiling gxpcmap.c I get the following warning which alarms me. I=20=
did read the comments in gxdevice.h at line 91-95 but I did not expect=20=
to get this warning:
Warning : division by 0
gxpcmap.c line 82 / ((=05( (1) <=3D 1 ? 1 : ((1) % 3 =3D=3D 0 || (1) =
=3D=3D 4 ||=20
(1) =3D=3D 8 ) ? 3 : 4 )) - 1) ) ) >=3D 8 ? 255 : (1 << =05( (=05( (1) =
<=3D 1 ?=20
1 : ((1
Can anybody give me some hints on what to change to get the GS CVS head=20=
compiling?
Kind regards,
Erik Strik
Aurelon
--Apple-Mail-1-1052387716
Content-Transfer-Encoding: quoted-printable
Content-Type: text/enriched;
charset=US-ASCII
Hello,
Can anybody help me with a compiling error I experience when trying to
compile the GS head with Metrowerks CodeWarrior 7.
When compiling gscolor3.c I get the following errors:
<fontfamily><param>Courier</param><smaller>Warning : illegal empty
declaration
gxpcolor.h line 120 extern
dev_color_proc_save_dc(gx_dc_pattern_save_dc);
Error : identifier expected
gxpcolor.h line 120 extern
dev_color_proc_save_dc(gx_dc_pattern_save_dc);
Error : illegal function definition
gxpcolor.h line 121 extern dev_color_proc_write(gx_dc_pattern_write);
Error : illegal function definition
gxpcolor.h line 122 extern dev_color_proc_read(gx_dc_pattern_read);
Error : illegal function definition
gxpcolor.h line 128 extern
dev_color_proc_get_nonzero_comps(gx_dc_pattern_get_nonzero_comps);
</smaller></fontfamily>
When compiling gxwts.c I get the following error:
<fontfamily><param>Courier</param><smaller>Error : illegal implicit
conversion from 'unsigned char *[4]' to
'const unsigned char **'
gxwts.c line 417 pdevc->colors.wts.plane_vector, invert, w, h);
</smaller></fontfamily>
When compiling gxwts.c I get the following error:
<fontfamily><param>Courier</param><smaller>Error : illegal implicit
conversion from 'const struct gx_cm_color_map_procs_s *' to
'struct gx_cm_color_map_procs_s *'
gdevdgbr.c line 445 map_procs =3D dev_proc(dev,
get_color_mapping_procs)(dev);
</smaller></fontfamily>
When compiling gxpcmap.c I get the following warning which alarms me.
I did read the comments in gxdevice.h at line 91-95 but I did not
expect to get this warning:
<fontfamily><param>Courier</param><smaller>Warning : division by 0
gxpcmap.c line 82 / ((=05( (1) <<=3D 1 ? 1 : ((1) % 3 =3D=3D 0 || (1) =
=3D=3D 4
|| (1) =3D=3D 8 ) ? 3 : 4 )) - 1) ) ) >=3D 8 ? 255 : (1 <<<< =05( (=05( =
(1) <<=3D
1 ? 1 : ((1
</smaller></fontfamily>
Can anybody give me some hints on what to change to get the GS CVS
head compiling?
Kind regards,
Erik Strik
Aurelon
--Apple-Mail-1-1052387716--