6 msgShifting: what's going on?
1 msgneed help: gcc rtl function calls
7 msgHow to dump all the optimization flags enabled?
3 msgcommand line order of object files and libraries
5 msgOpenMP on gcc
1 msg[AIX] gcc cannot compile huge c file
2 msgSeemingly identical gcc versions, except one se...
4 msgwhat's this syntax ?
3 msgstrict C++ mode
2 msglist of warning messages
5 msgProblem With templates
4 msgEmbedded arm-elf-gcc
1 msgRe: bucknell matthews
1 msgCompiling gcc 3.3.2 on AIX 64 bit platform
2 msgcan __exchange_and_add be used from outside?
4 msgCommand flags for debugging template code

_ZTV vs _ZTI
\ viet (26 Mar 2007)
. \ Ian Lance Taylor (26 Mar 2007)
. \ Andrew Haley (27 Mar 2007)

3 msg'char *' diff in header & func arg list?
2 msgRe: Where is ld.so and libdl.so built from
2 msgmember class
Subject:_ZTV vs _ZTI
Group:Gcc-help
From:viet
Date:26 Mar 2007


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



© 2004-2008 readlist.com