[Bug target/13654] multiple translation units, inlined constructor: invalid vtable [cygwin 3.3.1]
gcc at axel-naumann dot de
gcc-bugzilla@gcc.gnu.org
Wed Jan 14 14:53:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list