public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: viet@horslimites.org
To: gcc-help@gcc.gnu.org
Subject: _ZTV vs _ZTI
Date: Mon, 26 Mar 2007 23:49:00 -0000	[thread overview]
Message-ID: <39242.198.73.165.1.1174952441.squirrel@courrier.horslimites.org> (raw)

Hi,

I have an archive file, when I do a nm on it, I can see.

00000000 V _ZTV13VLH_Container

the compile option to create the objects for the archive (.a) is

gcc -c -Wno-ctor-dtor-privacy  -fno-rtti -MMD -pthread -Wno-deprecated
-Wall -O2

I have an .so that link with the above archive, when I do an nm on it, I
can see:
         U _ZTI13VLH_Container

the compile option to creates objects for the .so is

g++ -pipe -Wall -fPIC -rdynamic -g

I'm guessing that the problem for the undefined symbol is a compile
option. What is the difference between _ZTV and _ZTI?

When linking my so, I put the archive at the end. Any idea?

Regards,

VLH

             reply	other threads:[~2007-03-26 23:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-26 23:49 viet [this message]
2007-03-27  1:17 ` Ian Lance Taylor
2007-03-27 11:43 ` Andrew Haley

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=39242.198.73.165.1.1174952441.squirrel@courrier.horslimites.org \
    --to=viet@horslimites.org \
    --cc=gcc-help@gcc.gnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).