Rob Soe wrote: > Hi all, > > I have the following code where I am looping through a sdf file and > would like to generate fingerprint for each molecule. > > > When I compiled it, there was a link error in the end. I am using the > example project setting (I already have obconvd.lib oberrorD.lib > OBDLLD.lib in the project linker’s additional dependencies) which came > with the openbabel package. I tried both version (2.2.1 and 2.2.3). Both > failed to work. > > 1>example1.obj : error LNK2001: unresolved external symbol > "__declspec(dllimport) public: static class OpenBabel::OBFingerprint * > __cdecl OpenBabel::OBFingerprint::FindFingerprint(char const *)" > (__imp_?findfingerpr...@obfingerprint@OpenBabel@@sapa...@pbd@Z) > > 1>..\debug/example1.exe : fatal error LNK1120: 1 unresolved externals > I assume you are building using Visual Studio. On this platform in v2.2.3 the code is in several modules built as separate DLLs(*.obf). You are nearly there: add OBFPRT.lib or OBFPRTD.lib to your Additional Dependencies in the Input section of the Linker Configuration Properties.
Chris ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss