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]
Other format: [Raw text]

[Bug target/13654] multiple translation units, inlined constructor: invalid vtable [cygwin 3.3.1]


------- 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


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