The problem is the AnnotationData...Actually just leave this with me for a day or two - I want to check if just expanding the template in pubchemjsonformat.cpp solves the problem (template class OBPairTemplate<vector<string>>;).
If not I'll be back to you.. - Noel On 25 November 2013 12:59, Matt Swain <mattswain...@gmail.com> wrote: > Looks like I inadvertently caused this issue. > > Could it be because I added OBPairBool to generic.h, to go along with the > existing OBPairInteger and OBPairFloatingPoint? > https://github.com/openbabel/openbabel/pull/14/files#diff-ff91ae2aad7176f787e7689afd1f6ba4R145 > > I see that cifformat uses OBPairFloatingPoint fine without any issues. If > OBPairFloatingPoint and OBPairInteger are fine, it would be pretty > straightforward to just use OBPairInteger to store booleans, and get rid of > OBPairBool. > > Otherwise what about just using "typedef OBPairTemplate<bool> CustomBool" > within the format itself, like the example in the Generic Data docs? > http://openbabel.org/dev-api/generic_data.shtml > > Matt > > On 23 Nov 2013, at 18:35, Noel O'Boyle <baoille...@gmail.com> wrote: > >> The json formats won't link under MSVC as the templates as the >> OBPairTemplates are not exported in the openbabel dll. >> >> Anyone with more C++ fu got any ideas. Adding the following works but >> it's really a kludge: >> #ifdef _MSC_VER >> template OBAPI class OBPairTemplate<int>; >> template OBAPI class OBPairTemplate<double>; >> template OBAPI class OBPairTemplate<bool>; >> #endif >> >> ?? >> >> Noel >> >> ------------------------------------------------------------------------------ >> Shape the Mobile Experience: Free Subscription >> Software experts and developers: Be at the forefront of tech innovation. >> Intel(R) Software Adrenaline delivers strategic insight and game-changing >> conversations that shape the rapidly evolving mobile landscape. Sign up now. >> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk >> _______________________________________________ >> OpenBabel-Devel mailing list >> OpenBabel-Devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/openbabel-devel > ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ OpenBabel-Devel mailing list OpenBabel-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-devel