[Mingw-w64-public] Strange linker error with gcc-5.1 32-bit involving 'virtual thunk'

2015-07-28 Thread Edward Diener
Without trying immediately to give specific code for what is a large project, I am getting linker errors when trying to link a second shared library which depends on a first shared library that has linked successfully. The errors are: xml_wgrammar.o:xml_wgrammar.cpp:(.rdata$_ZTVN5boost7archive2

Re: [Mingw-w64-public] Strange linker error with gcc-5.1 32-bit involving 'virtual thunk'

2015-07-28 Thread Edward Diener
On 7/28/2015 8:27 AM, Edward Diener wrote: > Without trying immediately to give specific code for what is a large > project, I am getting linker errors when trying to link a second shared > library which depends on a first shared library that has linked > successfully. The errors are: > > xml_wgram

Re: [Mingw-w64-public] Strange linker error with gcc-5.1 32-bit involving 'virtual thunk'

2015-07-28 Thread Ruben Van Boxem
2015-07-28 14:44 GMT+02:00 Edward Diener : > On 7/28/2015 8:27 AM, Edward Diener wrote: > > Without trying immediately to give specific code for what is a large > > project, I am getting linker errors when trying to link a second shared > > library which depends on a first shared library that has

Re: [Mingw-w64-public] Strange linker error with gcc-5.1 32-bit involving 'virtual thunk'

2015-07-28 Thread Edward Diener
On 7/28/2015 8:49 AM, Ruben Van Boxem wrote: > 2015-07-28 14:44 GMT+02:00 Edward Diener >: > > On 7/28/2015 8:27 AM, Edward Diener wrote: > > Without trying immediately to give specific code for what is a large > > project, I am getting linker e

Re: [Mingw-w64-public] Strange linker error with gcc-5.1 32-bit involving 'virtual thunk'

2015-07-29 Thread Edward Diener
On 7/28/2015 8:49 AM, Ruben Van Boxem wrote: > 2015-07-28 14:44 GMT+02:00 Edward Diener >: > > On 7/28/2015 8:27 AM, Edward Diener wrote: > > Without trying immediately to give specific code for what is a large > > project, I am getting linker e

Re: [Mingw-w64-public] Strange linker error with gcc-5.1 32-bit involving 'virtual thunk'

2015-07-29 Thread Gisle Vanem
Edward Diener wrote: > If I remove the declaration and definition of ex_xml_exception::what(), > since it is not needed, when linking I get: > > throw_exception_ex.o:throw_exception_ex.cpp:(.rdata$_ZTV16ex_xml_exception[__ZTV16ex_xml_exception]+0x20): > undefined reference to `virtual thunk to ex_

Re: [Mingw-w64-public] Strange linker error with gcc-5.1 32-bit involving 'virtual thunk'

2015-07-30 Thread Edward Diener
On 7/30/2015 2:48 AM, Gisle Vanem wrote: > Edward Diener wrote: > >> If I remove the declaration and definition of ex_xml_exception::what(), >> since it is not needed, when linking I get: >> >> throw_exception_ex.o:throw_exception_ex.cpp:(.rdata$_ZTV16ex_xml_exception[__ZTV16ex_xml_exception]+0x20)

Re: [Mingw-w64-public] Strange linker error with gcc-5.1 32-bit involving 'virtual thunk'

2015-07-30 Thread Edward Diener
On 7/30/2015 2:48 AM, Gisle Vanem wrote: > Edward Diener wrote: > >> If I remove the declaration and definition of ex_xml_exception::what(), >> since it is not needed, when linking I get: >> >> throw_exception_ex.o:throw_exception_ex.cpp:(.rdata$_ZTV16ex_xml_exception[__ZTV16ex_xml_exception]+0x20)

Re: [Mingw-w64-public] Strange linker error with gcc-5.1 32-bit involving 'virtual thunk'

2015-07-30 Thread Óscar Fuentes
Edward Diener writes: >> Another thing is to get some hints from a .map-file. >> Add "-Wl,--print-map,--sort-common,--cref > file.map" at the >> of the link-cmd. > > I could not find any documentation regarding the linker options you > specify in the gcc documentation. Are they mingw-64 specific

Re: [Mingw-w64-public] Strange linker error with gcc-5.1 32-bit involving 'virtual thunk'

2015-07-30 Thread Edward Diener
On 7/30/2015 10:48 AM, Óscar Fuentes wrote: > Edward Diener > writes: > >>> Another thing is to get some hints from a .map-file. >>> Add "-Wl,--print-map,--sort-common,--cref > file.map" at the >>> of the link-cmd. >> >> I could not find any documentation regarding the linker options you >> specif

Re: [Mingw-w64-public] Strange linker error with gcc-5.1 32-bit involving 'virtual thunk'

2015-07-30 Thread Edward Diener
On 7/30/2015 10:48 AM, Óscar Fuentes wrote: > Edward Diener > writes: > >>> Another thing is to get some hints from a .map-file. >>> Add "-Wl,--print-map,--sort-common,--cref > file.map" at the >>> of the link-cmd. >> >> I could not find any documentation regarding the linker options you >> specif

Re: [Mingw-w64-public] Strange linker error with gcc-5.1 32-bit involving 'virtual thunk'

2015-07-31 Thread Ruben Van Boxem
2015-07-31 2:04 GMT+02:00 Edward Diener : > On 7/30/2015 10:48 AM, Óscar Fuentes wrote: > > Edward Diener > > writes: > > > >>> Another thing is to get some hints from a .map-file. > >>> Add "-Wl,--print-map,--sort-common,--cref > file.map" at the > >>> of the link-cmd. > >> > >> I could not find

Re: [Mingw-w64-public] Strange linker error with gcc-5.1 32-bit involving 'virtual thunk'

2015-07-31 Thread Edward Diener
On 7/31/2015 6:05 AM, Ruben Van Boxem wrote: > 2015-07-31 2:04 GMT+02:00 Edward Diener >: > > On 7/30/2015 10:48 AM, Óscar Fuentes wrote: > > Edward Diener > > > writes: > > > >>> Another thing i

Re: [Mingw-w64-public] Strange linker error with gcc-5.1 32-bit involving 'virtual thunk'

2015-07-31 Thread Óscar Fuentes
Edward Diener writes: >> I'm not sure this is a GCC bug. Does the linker error also occur when >> using static libraries, and when you dllexport the whole class as >> opposed to the functions you're explicitly defining? > > I have tried neither. > >> I believe this error is the same as your previ

Re: [Mingw-w64-public] Strange linker error with gcc-5.1 32-bit involving 'virtual thunk'

2015-07-31 Thread Edward Diener
On 7/31/2015 7:45 AM, Óscar Fuentes wrote: > Edward Diener > writes: > >>> I'm not sure this is a GCC bug. Does the linker error also occur when >>> using static libraries, and when you dllexport the whole class as >>> opposed to the functions you're explicitly defining? >> >> I have tried neither

Re: [Mingw-w64-public] Strange linker error with gcc-5.1 32-bit involving 'virtual thunk'

2015-07-31 Thread Óscar Fuentes
Edward Diener writes: >> The code is far from being a minimal example, so I didn't look at it >> all, but I see that the class ex_exception is not exported (EX_VISIBLE >> expands to "... __visibility__("default")..." and you set >> -fvisibility=hidden in your compile command). If your class has v

Re: [Mingw-w64-public] Strange linker error with gcc-5.1 32-bit involving 'virtual thunk'

2015-07-31 Thread Ruben Van Boxem
2015-07-31 13:07 GMT+02:00 Edward Diener : > On 7/31/2015 6:05 AM, Ruben Van Boxem wrote: > > 2015-07-31 2:04 GMT+02:00 Edward Diener > >: > > > > On 7/30/2015 10:48 AM, Óscar Fuentes wrote: > > > Edward Diener >

Re: [Mingw-w64-public] Strange linker error with gcc-5.1 32-bit involving 'virtual thunk'

2015-07-31 Thread Edward Diener
On 7/31/2015 8:52 AM, Óscar Fuentes wrote: > Edward Diener > writes: > >>> The code is far from being a minimal example, so I didn't look at it >>> all, but I see that the class ex_exception is not exported (EX_VISIBLE >>> expands to "... __visibility__("default")..." and you set >>> -fvisibility=

Re: [Mingw-w64-public] Strange linker error with gcc-5.1 32-bit involving 'virtual thunk'

2015-07-31 Thread Edward Diener
On 7/31/2015 9:40 AM, Ruben Van Boxem wrote: > 2015-07-31 13:07 GMT+02:00 Edward Diener >: > > On 7/31/2015 6:05 AM, Ruben Van Boxem wrote: > > 2015-07-31 2:04 GMT+02:00 Edward Diener > >

Re: [Mingw-w64-public] Strange linker error with gcc-5.1 32-bit involving 'virtual thunk'

2015-07-31 Thread Óscar Fuentes
Edward Diener writes: >> Calling a virtual member requires an access to the vtable of the class. >> The vtable is defined on the dll that contains the class' code. If the >> class is not exported, the vtable is not exported. The errors you are >> seeing is the linker complaining about the missing

Re: [Mingw-w64-public] Strange linker error with gcc-5.1 32-bit involving 'virtual thunk'

2015-08-02 Thread Edward Diener
On 7/31/2015 12:27 PM, Óscar Fuentes wrote: > Edward Diener > writes: > >>> Calling a virtual member requires an access to the vtable of the class. >>> The vtable is defined on the dll that contains the class' code. If the >>> class is not exported, the vtable is not exported. The errors you are >

Re: [Mingw-w64-public] Strange linker error with gcc-5.1 32-bit involving 'virtual thunk'

2015-08-02 Thread Edward Diener
On 7/31/2015 12:27 PM, Óscar Fuentes wrote: > Edward Diener > writes: > >>> Calling a virtual member requires an access to the vtable of the class. >>> The vtable is defined on the dll that contains the class' code. If the >>> class is not exported, the vtable is not exported. The errors you are >