From: <bs...@us...> - 2005-11-29 14:40:57
|
Hi all, I've been trying to create a static library of version 2.0.0 on Windows using Visual C++ .NET 2003. For this I - created a custom Makefile with only the define INCHI_LINK_AS_DLL - copied windows-vc2005\babelconfig.h into src - added all source files from src, src\fingerprints, src\formats, src\formats\xml, and src\math to the Makefile except dlhandler_*.cpp, main.cpp and *.c - downloaded binary distributions of libxml2 and iconv and updated the Makefile to find them Compilation proceeds without errors and I can link the resulting openbabel.lib with my application. The problem is no fileformats are registered, apparently because the code in the fileformat source files is never run (instantiation of objects with global scope). I tried to add the file alchemyformat.cpp to my project and this way compilation of my program succeeded (strangely enough as I assumed it would complain about double declarations) and I got the format registered. This means the only way to get all formats registered, is including all these files into my project. Is there something I'm overlooking or might it be related to bug 1246761? (https://sourceforge.net/tracker/index.php?func=detail&aid=1246761&group_id= 40728&atid=428740). Thanks in advance for any help! Greetz, Ben -------------------------------------------------------------- Ben Swerts email: bs...@us... soon to be releasing a new application making use of OpenBabel -------------------------------------------------------------- |