Type conversion from type Elf32_Ehdr to type const char

Edwin Chan/Toronto/IBM edwinc@ca.ibm.com
Wed Jun 12 11:38:00 GMT 2002


Hi,

I would like to know how to convert from type Elf32_Ehdr to type const char

Here are some things I tried, but they all failed.
ex.
    Elf32_Ehdr Ehdr;
    const char tmp = static_cast<const char>(Ehdr);

ex
    Elf32_Ehdr Ehdr;
    const char tmp = const_cast<const char>(Ehdr);

ex
    Elf32_Ehdr Ehdr;
    const char tmp = (const char)Ehdr;

ex
    Elf32_Ehdr Ehdr;
    char tmp = (char)Ehdr;







More information about the Gcc-help mailing list