swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swarm-Support] integer from pointer without a cast


From: Derek Farren
Subject: Re: [Swarm-Support] integer from pointer without a cast
Date: Fri, 9 Jul 2004 18:58:18 -0400

I see... but the header file which defines the method is imported, and it
looks ok.

Thanks
----- Original Message ----- 
From: "Scott Christley" <address@hidden>
To: <address@hidden>
Sent: Friday, July 09, 2004 11:45 AM
Subject: Re: [Swarm-Support] integer from pointer without a cast


>
> Derek,
>
> The important warning is actually the one right above the cast warning:
>
> > Agent.m:66: warning: `Agent' does not respond to `getAPrice'
>
> this is saying the compiler does not know anything about a method
> called getAPrice.  This could be because you are not importing the
> header file which defines it or you forgot to put it in the header
> file.  Because the compiler does not know, it assumes that the return
> value is a pointer, but then it sees you are assigning it to an integer
> variable, and thus the warning.
>
> cheers
> Scott
>
> On Thursday, July 8, 2004, at 10:31  PM, Derek Farren wrote:
>
> > Hello everybody.
> >
> > What does the following error mean? Everithing is ok (I believe)....
> > method
> > getAPrice is imported on Agent.h.
> > The application runs ok, but this warning makes me nervious.
> >
> > Agent.m: In function `-[Agent signalDemand]':
> > Agent.m:66: warning: `Agent' does not respond to `getAPrice'
> > Agent.m:66: warning: assignment makes integer from pointer without a
> > cast
> >
> > Thanks
> >
> > Derek
> >
> >
> > _______________________________________________
> > Support mailing list
> > address@hidden
> > http://www.swarm.org/mailman/listinfo/support
>
> _______________________________________________
> Support mailing list
> address@hidden
> http://www.swarm.org/mailman/listinfo/support
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]