Re: errors in porting on gcc 3.4.6 from gcc 3.2.3

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

 



On Tue, 15 May 2007 03:47:03 -0700, kushwaha wrote:

> hi all..
> 
> Following is the part of a code giving error with gcc 3.4.6  which
> previously compiled with gcc 3.2.3.

Are you sure...? Compiling your code (gcc 4.1.2) I get:

error: ‘class HString_Key’ has no member named ‘mpcCallId’
error: ‘class HString_Key’ has no member named ‘mulHashId’

from these lines:

    key.mpcCallId = apcCallId;
    key.mulHashId = apcHashId;

and sure enough, your class template HString_Key does not contain those 
members. I don't see how this could have compiled with gcc 3.2.3. Didn't 
you mean:

    key.mpcId = apcCallId;
    key.mulId = apcHashId;

in Equal_to_HString_Key::Equal_to_HString_Key(...) ? Compiles ok for me 
with this change.

[...]

-- 
Lionel B


[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