Just found the solution, and good news, no code changes needed on your part. Details are at http://techbase.kde.org/Getting_Started/Build/Windows/Common_problems#DLL-Export_of_templated_functions.2Fclasses
I just need to remove OBAPI in generic.h and your code compiles fine. I'll sort this out today or tomorrow, and doublecheck it doesn't cause any problems elsewhere.... - Noel On 25 November 2013 13:36, Noel O'Boyle <baoille...@gmail.com> wrote: > 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 >> ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ OpenBabel-Devel mailing list OpenBabel-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-devel