From: Shriramana Sharma <samjnaa@gmail.com>
To: Linux C Programming List <linux-c-programming@vger.kernel.org>
Subject: no see copy-constructor in output of nm
Date: Tue, 10 Jul 2007 22:00:57 +0530 [thread overview]
Message-ID: <4693B441.6070203@gmail.com> (raw)
For the following code:
class Integer
{
public :
Integer ( int i ) : i_ ( i ) {}
private :
int i_ ;
} ;
int main ( void )
{
Integer a ( 1 ) ;
Integer c ( a ) ;
}
I do: g++ -c and then run nm -C on the object file. I get only:
00000000 W Integer::Integer(int)
U __gxx_personality_v0
00000000 T main
Why do I not see the signature of the copy constructor
Integer::Integer(const Integer&) in the symbols list even though it is
automatically created?
Also, why do I not see i_, a and c and the name of the class Integer
itself? Are they not also symbols?
Shriramana Sharma.
next reply other threads:[~2007-07-10 16:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-10 16:30 Shriramana Sharma [this message]
2007-07-11 15:18 ` no see copy-constructor in output of nm Glynn Clements
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4693B441.6070203@gmail.com \
--to=samjnaa@gmail.com \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.