On Sat, Feb 18, 2006 at 08:44:27PM +0100, g.fischer ah-online.com wrote:
>
> hello,
>
> got the following errors using mipspro 7.43 and irix
6.5.29:
>
> /cc-1515 c99: ERROR File = image.c, Line = 966
> A value of type "int" cannot be assigned
to an entity of type "char *".
>
> data = calloc (sizeof (char), *size);
^
Try changing that line to:
data = (char*)calloc (sizeof (char), *size);
The same for the other lines.
This is really the proper way to write the code. MIPSpro
insists on it,
while many other compilers are willing to let you be sloppy.
If you do get it built, please create patches to submit to
Robin so that
other people can benefit from your efforts.
> cc-1515 c99: ERROR File = image.c, Line = 993
> A value of type "int" cannot be assigned
to an entity of type "char *".
>
> data = calloc (sizeof (char), size);
> ^
> cc-1515 c99: ERROR File = image.c, Line = 1020
> A value of type "int" cannot be assigned
to an entity of type "char *".
>
> data = calloc (sizeof (char), size);
> ^
> cc-1515 c99: ERROR File = image.c, Line = 1047
> A value of type "int" cannot be assigned
to an entity of type "char *".
>
> data = calloc (sizeof (char), size);
> ^
> cc-1515 c99: ERROR File = image.c, Line = 1074
> A value of type "int" cannot be assigned
to an entity of type "char *".
>
> data = calloc (sizeof (char), size);
> ^
> cc-1515 c99: ERROR File = image.c, Line = 1100
> A value of type "int" cannot be assigned
to an entity of type "char *".
>
> data = calloc (sizeof (char), size);
> ^
> /
> thanks in advance
>
> --
> AH Computer-Systeme
> Goetz Fischer
> Senior Consultant
> Phone: +49(0)7225/98 98 79
> Fax: +49(0)7225/28 64
> eMail: g.fischer ah-online.com
> http://www.ah-online.com
> http://www.ah-webhosting
.com
>
--
Joshua D. Boyd
jdboyd jdboyd.net
http://www.jdboyd.net/
http://www.joshuaboyd.org/
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep
through log files
for problems? Stop! Download the new AJAX search engine
that makes
searching your log files as easy as surfing the web.
DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Cinepaint-developers mailing list
Cinepaint-developers lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ci
nepaint-developers
|