This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/13654] multiple translation units, inlined constructor: invalid vtable [cygwin 3.3.1]
- From: "gcc at axel-naumann dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2004 14:53:01 -0000
- Subject: [Bug target/13654] multiple translation units, inlined constructor: invalid vtable [cygwin 3.3.1]
- References: <20040112114019.13654.gcc@axel-naumann.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gcc at axel-naumann dot de 2004-01-14 14:53 -------
(In reply to comment #6)
> This is YA dllimport problem. Your testcase works for me (no segfault, app
> runs as expected) on mingw32 gcc-3.4 if I add
> -Wl,--enable-runtime-pseudo-reloc to flags when building .exe
> eg
> g++ -g -o vtbl main.o -Wl,--enable-runtime-pseudo-reloc -L./ -llib
>
> Please read up auto-import section in ld.info to see why this is needed.
For the archives: --enable-runtime-pseudo-reloc doesn't solve it for gcc3.3.1's
ld. Instead, import libs (.dll.a) have to be created (--out-implib) for
gcc3.3.*'s ld again (wasn't needed for 3.2).
Thanks for your help with this!
Axel.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13654