This is the mail archive of the gcc-help@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]

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


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