[lug] objdump, nm, and const
D. Stimits
stimits at attbi.com
Tue Jun 17 15:16:16 MDT 2003
I'm trying to verify what g++ is telling me, that a library I have
contains a function which wants a pointer argument, and that the
argument is not marked as const. It is the format argument of a
printf-like function in ncurses, and is declared in some places "const
char*", while in others just "char*". Is it possible with objdump or nm
to verify the argument as being marked const or not being marked const?
It is my belief that g++ is correct, and that the lib is not compiled
with const in the function char* argument.
D. Stimits, stimits AT attbi DOT com
More information about the LUG
mailing list