From: Maikeru L. <mlong@U.Arizona.EDU> - 1998-03-14 14:27:32
|
> I get this message everytime I compile a program: > > Assignment makes pointer from integer w/o a cast > > And here's the problem: > > add_text=text_length(fonts[ust].dat,ch4); > > ch4 is just a single character, it's a replacment for say something like > "A"... But it just dosent work!!!! Hmmm.. when I first looked at this problem, I was thinking that maybe you had ch4 declared as "char" rather than "char *".... However.. when I took a second look at the error you told us: "Assignment makes pointer from integer without a cast"... That refers to the '=' assignment in the line. text_length() returns int. I'm willing to bet good money that "add_text" ISN'T of type int... and is in fact.. a pointer. Make sure "add_text" is of type int.. or assign the return value of text_length to something that is. - M. Long - mlong@u.arizona.edu - http://www.u.arizona.edu/~mlong/ |