[Mingw-w64-public] Linker problem with i686-5.1.0-posix-dwarf-rt_v4-rev0 version

2015-07-24 Thread Edward Diener
Before attempting to reduce my code to a small enough example to post here in its entirety I will give a description of the problem to see if anyone has encountered it in general. The problem is purely a linker problem. I have an exported class in a shared library, called it XX in header file

Re: [Mingw-w64-public] Linker problem with i686-5.1.0-posix-dwarf-rt_v4-rev0 version

2015-07-24 Thread Riot
Where are you defining your template, in the header or the source? You may need to explicitly instantiate. On 24 Jul 2015 13:31, "Edward Diener" wrote: > Before attempting to reduce my code to a small enough example to post > here in its entirety I will give a description of the problem to see if

Re: [Mingw-w64-public] Linker problem with i686-5.1.0-posix-dwarf-rt_v4-rev0 version

2015-07-24 Thread Edward Diener
On 7/24/2015 8:54 AM, Riot wrote: > Where are you defining your template, in the header or the source? You > may need to explicitly instantiate. The template is being defined in the YY.cpp source file. > > On 24 Jul 2015 13:31, "Edward Diener" > wrote: > >

Re: [Mingw-w64-public] Linker problem with i686-5.1.0-posix-dwarf-rt_v4-rev0 version

2015-07-24 Thread Ruben Van Boxem
2015-07-24 17:03 GMT+02:00 Edward Diener : > On 7/24/2015 8:54 AM, Riot wrote: > > Where are you defining your template, in the header or the source? You > > may need to explicitly instantiate. > > The template is being defined in the YY.cpp source file. > Could you send example files displaying

Re: [Mingw-w64-public] Linker problem with i686-5.1.0-posix-dwarf-rt_v4-rev0 version

2015-07-24 Thread Riot
If you're defining your template in the cpp file, you'll need to explicitly instantiate it somewhere with the types you're using for it. Alternatively, define it in the header and it'll be instantiated wherever it's used with whatever types it's used with. On 24 July 2015 at 16:03, Edward Diener

Re: [Mingw-w64-public] Linker problem with i686-5.1.0-posix-dwarf-rt_v4-rev0 version

2015-07-24 Thread Edward Diener
On 7/24/2015 11:13 AM, Ruben Van Boxem wrote: > 2015-07-24 17:03 GMT+02:00 Edward Diener >: > > On 7/24/2015 8:54 AM, Riot wrote: > > Where are you defining your template, in the header or the source? You > > may need to explicitly instantiate. >

Re: [Mingw-w64-public] Linker problem with i686-5.1.0-posix-dwarf-rt_v4-rev0 version

2015-07-24 Thread Edward Diener
On 7/24/2015 11:28 AM, Riot wrote: > If you're defining your template in the cpp file, you'll need to > explicitly instantiate it somewhere with the types you're using for it. > Alternatively, define it in the header and it'll be instantiated > wherever it's used with whatever types it's used with.