This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

hppa2.0w-hp-hpux11.00: linkage problems with explicit instantiation


Hi!

One little step and the fun will begin on hpux for me:
I have a little problem with templates which are explicitly
instantiated.
Any idea where this goes wrong (gcc, binutils, hp-ld)?

This bug was common to many CVS versions of the last year, but I hoped
it would vanish some day. The code compiles and links fine on the
linux platform, so it is likely to be a platform dependent bug

# make
[...]
/usr/ccs/bin/ld: Unsatisfied symbols:
   Identity<u_Identifier>::SwapData()      (code)
[ ... a lot of missing symbols: all members of Identity<u_Identifier>
...]
[...]

# nm -C --defined-only ../obj/hpux11.00/Identity.o  | grep SwapData
00000000 T IdentityValues::SwapData()
00000000 t Identity<u_Identifier>::SwapData()
00000000 t Identity<v_Identifier>::SwapData()
00000000 t Identity<w_Identifier>::SwapData()
00000000 t Identity<v_1_Identifier>::SwapData()
00000000 t Identity<v_2_Identifier>::SwapData()
00000000 t Identity<sigma_11_Identifier>::SwapData()
00000000 t Identity<sigma_12_Identifier>::SwapData()
00000000 t Identity<sigma_22_Identifier>::SwapData()


Reading specs from
/opt/FREE-SOFTWARE/gcc-3.0/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0/specs
Configured with: ../gcc-3.0/configure --host=hppa2.0w-hp-hpux11.00
--prefix=/opt/FREE-SOFTWARE/gcc-3.0 --enable-languages=c,c++
--with-gnu-as --without-gnu-ld
--with-as=/opt/FREE-SOFTWARE/gcc-3.0/bin/as
--with-ld=/opt/FREE-SOFTWARE/gcc-3.0/bin/ld --enable-threads
--enable-version-specific-runtime-libs
Thread model: single
gcc version 3.0

# as --version
GNU assembler 2.11.2
Copyright 2001 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms
of
the GNU General Public License.  This program has absolutely no
warranty.
This assembler was configured for a target of `hppa2.0w-hp-hpux11.00'.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]