Hi all,

I'm setting up a new windows build environment using Windows 7 and MSVC
2010 C++ express, and my application is unable to find some of the symbols
from openbabel, namely etab and obErrorLog:

2>     Creating library
C:/src/xtalopt/build/src/xtalopt/Release/xtalopt.lib and object
C:/src/xtalopt/build/src/xtalopt/Release/xtalopt.exp
2>globalsearch.lib(optbase.obj) : error LNK2001: unresolved external symbol
"class OpenBabel::OBElementTable OpenBabel::etab" (?etab@OpenBabel
@@3VOBElementTable@1@A)
2>tab_edit.obj : error LNK2001: unresolved external symbol "class
OpenBabel::OBElementTable OpenBabel::etab" (?etab@OpenBabel
@@3VOBElementTable@1@A)
2>tab_init.obj : error LNK2001: unresolved external symbol "class
OpenBabel::OBElementTable OpenBabel::etab" (?etab@OpenBabel
@@3VOBElementTable@1@A)
2>xtalopt.obj : error LNK2001: unresolved external symbol "class
OpenBabel::OBElementTable OpenBabel::etab" (?etab@OpenBabel
@@3VOBElementTable@1@A)
2>globalsearch.lib(structure.obj) : error LNK2001: unresolved external
symbol "class OpenBabel::OBElementTable OpenBabel::etab" (?etab@OpenBabel
@@3VOBElementTable@1@A)
2>debug.obj : error LNK2019: unresolved external symbol "class
OpenBabel::OBElementTable OpenBabel::etab" (?etab@OpenBabel
@@3VOBElementTable@1@A) referenced in function "void __cdecl
XtalOptDebug::dumpPseudoPwscfOut(class XtalOpt::Xtal const *,class QString
const &)" (?dumpPseudoPwscfOut@XtalOptDebug@@YAXPBVXtal@XtalOpt@@ABVQString@
@@Z)
2>genetic.obj : error LNK2001: unresolved external symbol "class
OpenBabel::OBElementTable OpenBabel::etab" (?etab@OpenBabel
@@3VOBElementTable@1@A)
2>submolecule.obj : error LNK2001: unresolved external symbol "class
OpenBabel::OBElementTable OpenBabel::etab" (?etab@OpenBabel
@@3VOBElementTable@1@A)
2>xtal.obj : error LNK2001: unresolved external symbol "class
OpenBabel::OBElementTable OpenBabel::etab" (?etab@OpenBabel
@@3VOBElementTable@1@A)
2>globalsearch.lib(abstractdialog.obj) : error LNK2019: unresolved external
symbol "class OpenBabel::OBMessageHandler OpenBabel::obErrorLog"
(?obErrorLog@OpenBabel@@3VOBMessageHandler@1@A) referenced in function
"public: __thiscall GlobalSearch::AbstractDialog::AbstractDialog(class
Avogadro::GLWidget *,class QWidget *,class QFlags<enum Qt::WindowType>)"
(??0AbstractDialog@GlobalSearch@@QAE@PAVGLWidget@Avogadro@@PAVQWidget@
@V?$QFlags@W4WindowType@Qt@@@@@Z)
2>C:\src\xtalopt\build\src\xtalopt\Release\xtalopt.dll : fatal error
LNK1120: 2 unresolved externals

My project uses a lot of objects from openbabel, not just etab, but it
looks like the linker is only unable to find these two symbols. Maybe
because etab is static? I had this working without issue under WinXP + MSVC
C++ 2008 Express. Any windows devs have an idea what may be causing this
now?

Thanks,

Dave
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to