This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Linker Error for static template, undefined reference. Help.
- From: John Love-Jensen <eljay at adobe dot com>
- To: Iain Walsh <walshi3 at cs dot man dot ac dot uk>, MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Mon, 21 Nov 2005 06:40:45 -0600
- Subject: Re: Linker Error for static template, undefined reference. Help.
Hi Iain,
I see where you DECLARED allFiles.
Where do you DEFINE allFiles?
Something that looks like this in a .cpp file:
QVector<File>* FileSet::allFiles = NULL;
...or...
QVector<File>* FileSet::allFiles = new QVector<File>;
--Eljay