Question on compiling error using manipulator gcc 3.2.3
ivc 71
ivc71@hotmail.com
Tue Jan 11 14:39:00 GMT 2005
Thanks Eljay,
yes it clarifies.
Effectively casting the endl with the appropriate prototype it works.
Again...Thanx and regards,
Ivc
>From: Eljay Love-Jensen <eljay@adobe.com>
>To: ivc 71 <ivc71@hotmail.com>, gcc-help@gcc.gnu.org
>Subject: Re: Question on compiling error using manipulator gcc 3.2.3
>Date: Tue, 11 Jan 2005 08:28:07 -0600
>
>Hi ivc 71,
>
>The error you are seeing is the same as this error (which, I hope,
>clarifies):
>
>int foo(int x) { return 1; }
>int foo(char c) { return 2; }
>
>int main()
>{
> typedef int (*fn)(int x);
> fn fnptr = foo;
> if(fnptr == foo) // error here; which foo?
> return 5;
> return 6;
>}
>
>HTH,
>--Eljay
>
More information about the Gcc-help
mailing list