Re: Question on compiling error using manipulator gcc 3.2.3

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

 



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@xxxxxxxxx>
To: ivc 71 <ivc71@xxxxxxxxxxx>, gcc-help@xxxxxxxxxxx
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




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux