Juergen Spitzmueller wrote:
>> I am not sure putting this list in LaTeXFeatures like that is the best
>> solution, since packages.lst will be parsed everytime one exports to
>> latex... You may want to turn packages_ into a static variable and
>> make getPackage static too.
> 
> I tried this, but then I get linking errors in LaTeXFeatures.C
> ("packages_ not defined"). Can you give me some more detailed guidelines
> please?

It isn't static in the patch you posted. Anyway, this is what you need:

LaTeXFeatures.h

class LaTeXFeatures {
    ...
    static PackagesList packages_;
};

LaTeXFeatures.C (immediately below the #includes):

PackagesList LaTeXFeatures::packages_;

-- 
Angus

Reply via email to