Can't complie OpenBabelDLL

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Can't complie OpenBabelDLL

周锐
Hi, everybody
 
    I checkout the code from https://openbabel.svn.sourceforge.net/svnroot/openbabel/openbabel/tags/openbabel-2-2-3 today, and i try to complie OpenBabelDLL with vc2005. I encountered some some problem. the information as following:
 
1>Compiling...
1>alias.cpp
1>atom.cpp
1>base.cpp
1>bitvec.cpp
1>bond.cpp
1>bondtyper.cpp
1>builder.cpp
1>canon.cpp
1>..\..\src\canon.cpp(188) : warning C4305: '+=' : truncation from 'double' to 'float'
1>chains.cpp
1>chiral.cpp
1>cmpdfilter.cpp
1>data.cpp
1>descriptor.cpp
1>dlhandler_win32.cpp
1>..\..\src\dlhandler_win32.cpp(80) : warning C4101: 'buffer' : unreferenced local variable
1>filters.cpp
1>finger2.cpp
1>finger3.cpp
1>fingerprint.cpp
1>forcefield.cpp
1>..\..\src\forcefield.cpp(1894) : warning C4244: 'argument' : conversion from 'time_t' to 'unsigned int', possible loss of data
1>forcefieldghemical.cpp
1>Generating Code...
1>Compiling...
1>forcefieldmmff94.cpp
1>forcefielduff.cpp
1>format.cpp
1>generic.cpp
1>getinchi.cpp
1>grid.cpp
1>griddata.cpp
1>groupcontrib.cpp
1>kekulize.cpp
1>..\..\src\kekulize.cpp(318) : warning C4101: 'atom2' : unreferenced local variable
1>loader.cpp
1>matrix.cpp
1>matrix3x3.cpp
1>mol.cpp
1>molchrg.cpp
1>obconversion.cpp
1>oberror.cpp
1>obiter.cpp
1>obmolecformat.cpp
1>obutil.cpp
1>optransform.cpp
1>Generating Code...
1>Compiling...
1>parsmart.cpp
1>patty.cpp
1>phmodel.cpp
1>plugin.cpp
1>rand.cpp
1>residue.cpp
1>ring.cpp
1>rotamer.cpp
1>rotor.cpp
1>smartsdescriptors.cpp
1>spacegroup.cpp
1>tokenst.cpp
1>transform.cpp
1>transform3d.cpp
1>..\..\src\math\transform3d.cpp(58) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>typer.cpp
1>vector3.cpp
1>xml.cpp
1>APIInterface.cpp
1>cdxmlformat.cpp
1>chemdrawcdx.cpp
1>..\..\src\formats\chemdrawcdx.cpp(37) : warning C4244: 'argument' : conversion from 'unsigned __int64' to 'unsigned int', possible loss of data
1>..\..\src\formats\chemdrawcdx.cpp(37) : warning C4244: 'argument' : conversion from 'unsigned __int64' to 'unsigned int', possible loss of data
1>..\..\src\formats\chemdrawcdx.cpp(755) : warning C4065: switch statement contains 'default' but no 'case' labels
1>..\..\src\formats\chemdrawcdx.cpp(1087) : warning C4065: switch statement contains 'default' but no 'case' labels
1>Generating Code...
1>Compiling...
1>chemkinformat.cpp
1>cmlformat.cpp
1>cmlreactformat.cpp
1>copyformat.cpp
1>fastsearchformat.cpp
1>fingerprintformat.cpp
1>freefracformat.cpp
1>gausscubeformat.cpp
1>..\..\src\formats\gausscubeformat.cpp(577) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
1>gaussformat.cpp
1>..\..\src\formats\gaussformat.cpp(131) : warning C4800: 'const char *' : forcing value to bool 'true' or 'false' (performance warning)
1>gausszmatformat.cpp
1>inchiformat.cpp
1>MCDLformat.cpp
1>mdlformat.cpp
1>mmcifformat.cpp
1>mol2format.cpp
1>moldenformat.cpp
1>molreport.cpp
1>msiformat.cpp
1>msmsformat.cpp
1>pdbformat.cpp
1>Generating Code...
1>Compiling...
1>pngformat.cpp
1>D:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(2674) : warning C4996: 'std::_Equal' was declared deprecated
1>        D:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(2661) : see declaration of 'std::_Equal'
1>        Message: 'You have used a std:: construct that is not safe. See documentation on how to use the Safe Standard C++ Library'
1>        ..\..\src\formats\pngformat.cpp(127) : see reference to function template instantiation 'bool std::equal<const char*,char*>(_InIt1,_InIt1,_InIt2)' being compiled
1>        with
1>        [
1>            _InIt1=const char *,
1>            _InIt2=char *
1>        ]
1>pubchem.cpp
1>reportformat.cpp
1>rsmiformat.cpp
1>rxnformat.cpp
1>smilesformat.cpp
1>thermoformat.cpp
1>tinkerformat.cpp
1>titleformat.cpp
1>xmlformat.cpp
1>Generating Code...
1>f:\software\jchem\mychem\openbabel-2-2-3\src\formats\smilesformat.cpp(350) : warning C4715: 'OpenBabel::OBTetraPlanarStereo::ToInternal' : not all control paths return a value
1>f:\software\jchem\mychem\openbabel-2-2-3\src\formats\smilesformat.cpp(375) : warning C4715: 'OpenBabel::OBTetraPlanarStereo::ToShape' : not all control paths return a value
1>Compiling...
1>gen3d.cpp
1>Compiling manifest to resources...
1>Linking...
1>   Creating library Debug\OpenBabelDLLD.lib and object Debug\OpenBabelDLLD.exp
1>optransform.obj : error LNK2001: unresolved external symbol "public: void __thiscall OpenBabel::OBLocale::RestoreLocale(void)" ([hidden email])
1>forcefielduff.obj : error LNK2001: unresolved external symbol "public: void __thiscall OpenBabel::OBLocale::RestoreLocale(void)" ([hidden email])
1>groupcontrib.obj : error LNK2001: unresolved external symbol "public: void __thiscall OpenBabel::OBLocale::RestoreLocale(void)" ([hidden email])
1>loader.obj : error LNK2001: unresolved external symbol "public: void __thiscall OpenBabel::OBLocale::RestoreLocale(void)" ([hidden email])
1>obconversion.obj : error LNK2019: unresolved external symbol "public: void __thiscall OpenBabel::OBLocale::RestoreLocale(void)" ([hidden email]) referenced in function "public: class std::_Deque_const_iterator<class OpenBabel::OBError,class std::allocator<class OpenBabel::OBError>,0> __thiscall std::_Deque_const_iterator<class OpenBabel::OBError,class std::allocator<class OpenBabel::OBError>,1>::_Checked_iterator_base(void)const " ([hidden email])
1>builder.obj : error LNK2001: unresolved external symbol "public: void __thiscall OpenBabel::OBLocale::RestoreLocale(void)" ([hidden email])
1>data.obj : error LNK2001: unresolved external symbol "public: void __thiscall OpenBabel::OBLocale::RestoreLocale(void)" ([hidden email])
1>forcefieldghemical.obj : error LNK2001: unresolved external symbol "public: void __thiscall OpenBabel::OBLocale::RestoreLocale(void)" ([hidden email])
1>forcefieldmmff94.obj : error LNK2001: unresolved external symbol "public: void __thiscall OpenBabel::OBLocale::RestoreLocale(void)" ([hidden email])
1>optransform.obj : error LNK2001: unresolved external symbol "public: void __thiscall OpenBabel::OBLocale::SetLocale(void)" ([hidden email])
1>forcefielduff.obj : error LNK2019: unresolved external symbol "public: void __thiscall OpenBabel::OBLocale::SetLocale(void)" ([hidden email]) referenced in function "public: __thiscall OpenBabel::OBFFConstraints::~OBFFConstraints(void)" ([hidden email])
1>groupcontrib.obj : error LNK2001: unresolved external symbol "public: void __thiscall OpenBabel::OBLocale::SetLocale(void)" ([hidden email])
1>loader.obj : error LNK2001: unresolved external symbol "public: void __thiscall OpenBabel::OBLocale::SetLocale(void)" ([hidden email])
1>obconversion.obj : error LNK2001: unresolved external symbol "public: void __thiscall OpenBabel::OBLocale::SetLocale(void)" ([hidden email])
1>builder.obj : error LNK2001: unresolved external symbol "public: void __thiscall OpenBabel::OBLocale::SetLocale(void)" ([hidden email])
1>data.obj : error LNK2001: unresolved external symbol "public: void __thiscall OpenBabel::OBLocale::SetLocale(void)" ([hidden email])
1>forcefieldghemical.obj : error LNK2001: unresolved external symbol "public: void __thiscall OpenBabel::OBLocale::SetLocale(void)" ([hidden email])
1>forcefieldmmff94.obj : error LNK2001: unresolved external symbol "public: void __thiscall OpenBabel::OBLocale::SetLocale(void)" ([hidden email])
1>optransform.obj : error LNK2001: unresolved external symbol "class OpenBabel::OBLocale OpenBabel::obLocale" ([hidden email])
1>forcefielduff.obj : error LNK2001: unresolved external symbol "class OpenBabel::OBLocale OpenBabel::obLocale" ([hidden email])
1>groupcontrib.obj : error LNK2001: unresolved external symbol "class OpenBabel::OBLocale OpenBabel::obLocale" ([hidden email])
1>loader.obj : error LNK2001: unresolved external symbol "class OpenBabel::OBLocale OpenBabel::obLocale" ([hidden email])
1>obconversion.obj : error LNK2001: unresolved external symbol "class OpenBabel::OBLocale OpenBabel::obLocale" ([hidden email])
1>builder.obj : error LNK2001: unresolved external symbol "class OpenBabel::OBLocale OpenBabel::obLocale" ([hidden email])
1>data.obj : error LNK2019: unresolved external symbol "class OpenBabel::OBLocale OpenBabel::obLocale" ([hidden email]) referenced in function [hidden email]
1>forcefieldghemical.obj : error LNK2001: unresolved external symbol "class OpenBabel::OBLocale OpenBabel::obLocale" ([hidden email])
1>forcefieldmmff94.obj : error LNK2001: unresolved external symbol "class OpenBabel::OBLocale OpenBabel::obLocale" ([hidden email])
1>Debug\OpenBabelDLLD.dll : fatal error LNK1120: 3 unresolved externals
1>Creating browse information file...
1>Microsoft Browse Information Maintenance Utility Version 8.00.50727
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Build log was saved at "file://f:\software\JChem\mychem\openbabel-2-2-3\windows-vc2005\OpenBabelDLL\Debug\BuildLog.htm"
1>OpenBabelDLL - 28 error(s), 14 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
 
anybody who can help me?
 
thanks in advance.
 
Eric

------------------------------------------------------------------------------
Download Intel&#174; 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss