Hello I try to create a static version of OpenBabel 2.2.3 library on windows with MinGW and cmake. I uncheck the BUILD_SHARED option but the build fail and these error messages appear :
In file included from c:/workspace/openbabel-2.2.3/include/openbabel/atom.h:35, from c:/workspace/openbabel-2.2.3/include/openbabel/mol.h:42, from c:/workspace/openbabel-2.2.3/src/bondtyper.cpp:20: c:/workspace/openbabel-2.2.3/include/openbabel/math/vector3.h:281: warning: inline function `OpenBabel::vector3 OpenBabel::operator+(const OpenBabel::vector3&, const OpenBabel::vector3&)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/include/openbabel/math/vector3.h:286: warning: inline function `OpenBabel::vector3 OpenBabel::operator-(const OpenBabel::vector3&, const OpenBabel::vector3&)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/include/openbabel/math/vector3.h:291: warning: inline function `OpenBabel::vector3 OpenBabel::operator-(const OpenBabel::vector3&)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/include/openbabel/math/vector3.h:296: warning: inline function `OpenBabel::vector3 OpenBabel::operator*(const double&, const OpenBabel::vector3&)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/include/openbabel/math/vector3.h:301: warning: inline function `OpenBabel::vector3 OpenBabel::operator*(const OpenBabel::vector3&, const double&)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/include/openbabel/math/vector3.h:306: warning: inline function `OpenBabel::vector3 OpenBabel::operator/(const OpenBabel::vector3&, const double&)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/include/openbabel/math/vector3.h:321: warning: inline function `double OpenBabel::dot(const OpenBabel::vector3&, const OpenBabel::vector3&)' declared as dllimport: attribute ignored In file included from c:/workspace/openbabel-2.2.3/include/openbabel/atom.h:35, from c:/workspace/openbabel-2.2.3/include/openbabel/mol.h:42, from c:/workspace/openbabel-2.2.3/include/openbabel/builder.h:30, from c:/workspace/openbabel-2.2.3/src/builder.cpp:22: c:/workspace/openbabel-2.2.3/include/openbabel/math/vector3.h:281: warning: inline function `OpenBabel::vector3 OpenBabel::operator+(const OpenBabel::vector3&, const OpenBabel::vector3&)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/include/openbabel/math/vector3.h:286: warning: inline function `OpenBabel::vector3 OpenBabel::operator-(const OpenBabel::vector3&, const OpenBabel::vector3&)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/include/openbabel/math/vector3.h:291: warning: inline function `OpenBabel::vector3 OpenBabel::operator-(const OpenBabel::vector3&)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/include/openbabel/math/vector3.h:296: warning: inline function `OpenBabel::vector3 OpenBabel::operator*(const double&, const OpenBabel::vector3&)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/include/openbabel/math/vector3.h:301: warning: inline function `OpenBabel::vector3 OpenBabel::operator*(const OpenBabel::vector3&, const double&)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/include/openbabel/math/vector3.h:306: warning: inline function `OpenBabel::vector3 OpenBabel::operator/(const OpenBabel::vector3&, const double&)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/include/openbabel/math/vector3.h:321: warning: inline function `double OpenBabel::dot(const OpenBabel::vector3&, const OpenBabel::vector3&)' declared as dllimport: attribute ignored In file included from c:/workspace/openbabel-2.2.3/include/openbabel/generic.h:30, from c:/workspace/openbabel-2.2.3/include/openbabel/mol.h:51, from c:/workspace/openbabel-2.2.3/src/bondtyper.cpp:20: c:/workspace/openbabel-2.2.3/include/openbabel/obutil.h:202: warning: inline function `bool OpenBabel::IsNegligible(const double&, const double&, double)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/include/openbabel/obutil.h:224: warning: inline function `bool OpenBabel::IsApprox(const double&, const double&, double)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/include/openbabel/obutil.h:230: warning: inline function `bool OpenBabel::IsApprox_pos(const double&, const double&, double)' declared as dllimport: attribute ignored In file included from c:/workspace/openbabel-2.2.3/include/openbabel/generic.h:30, from c:/workspace/openbabel-2.2.3/include/openbabel/mol.h:51, from c:/workspace/openbabel-2.2.3/include/openbabel/builder.h:30, from c:/workspace/openbabel-2.2.3/src/builder.cpp:22: c:/workspace/openbabel-2.2.3/include/openbabel/obutil.h:202: warning: inline function `bool OpenBabel::IsNegligible(const double&, const double&, double)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/include/openbabel/obutil.h:224: warning: inline function `bool OpenBabel::IsApprox(const double&, const double&, double)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/include/openbabel/obutil.h:230: warning: inline function `bool OpenBabel::IsApprox_pos(const double&, const double&, double)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/builder.cpp:66: error: definition of static data member 'OpenBabel::OBBuilder::_fragments' of dllimport'd class c:/workspace/openbabel-2.2.3/src/builder.cpp:139: warning: non-inline function 'static OpenBabel::vector3 OpenBabel::OBBuilder::GetNewBondVector(OpenBabel::OBAtom*, double)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/builder.cpp:139: warning: 'static OpenBabel::vector3 OpenBabel::OBBuilder::GetNewBondVector(OpenBabel::OBAtom*, double)' defined locally after being referenced with dllimport linkage c:/workspace/openbabel-2.2.3/src/builder.cpp:636: warning: non-inline function 'static OpenBabel::OBBitVec OpenBabel::OBBuilder::GetFragment(OpenBabel::OBAtom*)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/builder.cpp:636: warning: 'static OpenBabel::OBBitVec OpenBabel::OBBuilder::GetFragment(OpenBabel::OBAtom*)' defined locally after being referenced with dllimport linkage c:/workspace/openbabel-2.2.3/src/builder.cpp:905: warning: non-inline function 'static void OpenBabel::OBBuilder::CorrectStereoBonds(OpenBabel::OBMol&)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/builder.cpp:905: warning: 'static void OpenBabel::OBBuilder::CorrectStereoBonds(OpenBabel::OBMol&)' defined locally after being referenced with dllimport linkage c:/workspace/openbabel-2.2.3/src/builder.cpp:986: warning: non-inline function 'static void OpenBabel::OBBuilder::CorrectStereoAtoms(OpenBabel::OBMol&)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/builder.cpp:986: warning: 'static void OpenBabel::OBBuilder::CorrectStereoAtoms(OpenBabel::OBMol&)' defined locally after being referenced with dllimport linkage c:/workspace/openbabel-2.2.3/src/bondtyper.cpp: In destructor `virtual OpenBabel::OBBondTyper::~OBBondTyper()': c:/workspace/openbabel-2.2.3/src/bondtyper.cpp:93: warning: non-inline function 'virtual OpenBabel::OBBondTyper::~OBBondTyper()' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/bondtyper.cpp: In constructor `OpenBabel::OBBondTyper::OBBondTyper()': c:/workspace/openbabel-2.2.3/src/bondtyper.cpp:63: internal compiler error: in rest_of_handle_final, at toplev.c:2067 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.mingw.org/bugs.shtml> for instructions. make[2]: *** [src/CMakeFiles/openbabel-2.dir/bondtyper.obj] Error 1 make[2]: *** Waiting for unfinished jobs.... c:/workspace/openbabel-2.2.3/src/builder.cpp: In static member function `static void OpenBabel::OBBuilder::AddNbrs(OpenBabel::OBBitVec&, OpenBabel::OBAtom*)': c:/workspace/openbabel-2.2.3/src/builder.cpp:626: warning: non-inline function 'static void OpenBabel::OBBuilder::AddNbrs(OpenBabel::OBBitVec&, OpenBabel::OBAtom*)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/builder.cpp: In static member function `static bool OpenBabel::OBBuilder::Connect(OpenBabel::OBMol&, int, int, OpenBabel::vector3&, int)': c:/workspace/openbabel-2.2.3/src/builder.cpp:134: warning: non-inline function 'static OpenBabel::vector3 OpenBabel::OBBuilder::GetNewBondVector(OpenBabel::OBAtom*)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/builder.cpp: In static member function `static bool OpenBabel::OBBuilder::Swap(OpenBabel::OBMol&, int, int, int, int)': c:/workspace/openbabel-2.2.3/src/builder.cpp:444: warning: non-inline function 'static bool OpenBabel::OBBuilder::Connect(OpenBabel::OBMol&, int, int, OpenBabel::vector3&, int)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/builder.cpp: In static member function `static void OpenBabel::OBBuilder::CorrectStereoAtoms(OpenBabel::OBMol&)': c:/workspace/openbabel-2.2.3/src/builder.cpp:582: warning: non-inline function 'static bool OpenBabel::OBBuilder::Swap(OpenBabel::OBMol&, int, int, int, int)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/builder.cpp: In member function `bool OpenBabel::OBBuilder::Build(OpenBabel::OBMol&)': c:/workspace/openbabel-2.2.3/src/builder.cpp:68: warning: non-inline function 'void OpenBabel::OBBuilder::LoadFragments()' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/builder.cpp:555: warning: non-inline function 'static bool OpenBabel::OBBuilder::Connect(OpenBabel::OBMol&, int, int, int)' is defined after prior declaration as dllimport: attribute ignored make[2]: *** [src/CMakeFiles/openbabel-2.dir/builder.obj] Error 1 In file included from c:/workspace/openbabel-2.2.3/include/openbabel/atom.h:35, from c:/workspace/openbabel-2.2.3/include/openbabel/mol.h:42, from c:/workspace/openbabel-2.2.3/src/chains.cpp:33: c:/workspace/openbabel-2.2.3/include/openbabel/math/vector3.h:281: warning: inline function `OpenBabel::vector3 OpenBabel::operator+(const OpenBabel::vector3&, const OpenBabel::vector3&)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/include/openbabel/math/vector3.h:286: warning: inline function `OpenBabel::vector3 OpenBabel::operator-(const OpenBabel::vector3&, const OpenBabel::vector3&)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/include/openbabel/math/vector3.h:291: warning: inline function `OpenBabel::vector3 OpenBabel::operator-(const OpenBabel::vector3&)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/include/openbabel/math/vector3.h:296: warning: inline function `OpenBabel::vector3 OpenBabel::operator*(const double&, const OpenBabel::vector3&)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/include/openbabel/math/vector3.h:301: warning: inline function `OpenBabel::vector3 OpenBabel::operator*(const OpenBabel::vector3&, const double&)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/include/openbabel/math/vector3.h:306: warning: inline function `OpenBabel::vector3 OpenBabel::operator/(const OpenBabel::vector3&, const double&)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/include/openbabel/math/vector3.h:321: warning: inline function `double OpenBabel::dot(const OpenBabel::vector3&, const OpenBabel::vector3&)' declared as dllimport: attribute ignored In file included from c:/workspace/openbabel-2.2.3/include/openbabel/generic.h:30, from c:/workspace/openbabel-2.2.3/include/openbabel/mol.h:51, from c:/workspace/openbabel-2.2.3/src/chains.cpp:33: c:/workspace/openbabel-2.2.3/include/openbabel/obutil.h:202: warning: inline function `bool OpenBabel::IsNegligible(const double&, const double&, double)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/include/openbabel/obutil.h:224: warning: inline function `bool OpenBabel::IsApprox(const double&, const double&, double)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/include/openbabel/obutil.h:230: warning: inline function `bool OpenBabel::IsApprox_pos(const double&, const double&, double)' declared as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/chains.cpp:813: warning: non-inline function 'void OpenBabel::OBChainsParser::CleanupMol()' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/chains.cpp:813: warning: 'void OpenBabel::OBChainsParser::CleanupMol()' defined locally after being referenced with dllimport linkage c:/workspace/openbabel-2.2.3/src/chains.cpp:1047: warning: non-inline function 'bool OpenBabel::OBChainsParser::DetermineHetAtoms(OpenBabel::OBMol&)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/chains.cpp:1047: warning: 'bool OpenBabel::OBChainsParser::DetermineHetAtoms(OpenBabel::OBMol&)' defined locally after being referenced with dllimport linkage c:/workspace/openbabel-2.2.3/src/chains.cpp:1072: warning: non-inline function 'bool OpenBabel::OBChainsParser::DetermineConnectedChains(OpenBabel::OBMol&)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/chains.cpp:1072: warning: 'bool OpenBabel::OBChainsParser::DetermineConnectedChains(OpenBabel::OBMol&)' defined locally after being referenced with dllimport linkage c:/workspace/openbabel-2.2.3/src/chains.cpp:1125: warning: non-inline function 'int OpenBabel::OBChainsParser::RecurseChain(OpenBabel::OBMol&, int, int)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/chains.cpp:1125: warning: 'int OpenBabel::OBChainsParser::RecurseChain(OpenBabel::OBMol&, int, int)' defined locally after being referenced with dllimport linkage c:/workspace/openbabel-2.2.3/src/chains.cpp:1152: warning: non-inline function 'bool OpenBabel::OBChainsParser::DeterminePeptideBackbone(OpenBabel::OBMol&)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/chains.cpp:1152: warning: 'bool OpenBabel::OBChainsParser::DeterminePeptideBackbone(OpenBabel::OBMol&)' defined locally after being referenced with dllimport linkage c:/workspace/openbabel-2.2.3/src/chains.cpp:1201: warning: non-inline function 'void OpenBabel::OBChainsParser::ConstrainBackbone(OpenBabel::OBMol&, OpenBabel::Template*, int)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/chains.cpp:1201: warning: 'void OpenBabel::OBChainsParser::ConstrainBackbone(OpenBabel::OBMol&, OpenBabel::Template*, int)' defined locally after being referenced with dllimport linkage c:/workspace/openbabel-2.2.3/src/chains.cpp:1273: warning: non-inline function 'bool OpenBabel::OBChainsParser::MatchConstraint(OpenBabel::OBAtom*, int)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/chains.cpp:1273: warning: 'bool OpenBabel::OBChainsParser::MatchConstraint(OpenBabel::OBAtom*, int)' defined locally after being referenced with dllimport linkage c:/workspace/openbabel-2.2.3/src/chains.cpp:1284: warning: non-inline function 'bool OpenBabel::OBChainsParser::Match2Constraints(OpenBabel::Template*, OpenBabel::OBAtom*, OpenBabel::OBAtom*)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/chains.cpp:1284: warning: 'bool OpenBabel::OBChainsParser::Match2Constraints(OpenBabel::Template*, OpenBabel::OBAtom*, OpenBabel::OBAtom*)' defined locally after being referenced with dllimport linkage c:/workspace/openbabel-2.2.3/src/chains.cpp:1298: warning: non-inline function 'bool OpenBabel::OBChainsParser::Match3Constraints(OpenBabel::Template*, OpenBabel::OBAtom*, OpenBabel::OBAtom*, OpenBabel::OBAtom*)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/chains.cpp:1298: warning: 'bool OpenBabel::OBChainsParser::Match3Constraints(OpenBabel::Template*, OpenBabel::OBAtom*, OpenBabel::OBAtom*, OpenBabel::OBAtom*)' defined locally after being referenced with dllimport linkage c:/workspace/openbabel-2.2.3/src/chains.cpp:1315: warning: non-inline function 'bool OpenBabel::OBChainsParser::Match4Constraints(OpenBabel::Template*, OpenBabel::OBAtom*, OpenBabel::OBAtom*, OpenBabel::OBAtom*, OpenBabel::OBAtom*)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/chains.cpp:1315: warning: 'bool OpenBabel::OBChainsParser::Match4Constraints(OpenBabel::Template*, OpenBabel::OBAtom*, OpenBabel::OBAtom*, OpenBabel::OBAtom*, OpenBabel::OBAtom*)' defined locally after being referenced with dllimport linkage c:/workspace/openbabel-2.2.3/src/chains.cpp:1335: warning: non-inline function 'void OpenBabel::OBChainsParser::TracePeptideChain(OpenBabel::OBMol&, int, int)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/chains.cpp:1335: warning: 'void OpenBabel::OBChainsParser::TracePeptideChain(OpenBabel::OBMol&, int, int)' defined locally after being referenced with dllimport linkage c:/workspace/openbabel-2.2.3/src/chains.cpp:1456: warning: non-inline function 'bool OpenBabel::OBChainsParser::DeterminePeptideSidechains(OpenBabel::OBMol&)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/chains.cpp:1456: warning: 'bool OpenBabel::OBChainsParser::DeterminePeptideSidechains(OpenBabel::OBMol&)' defined locally after being referenced with dllimport linkage c:/workspace/openbabel-2.2.3/src/chains.cpp:1471: warning: non-inline function 'void OpenBabel::OBChainsParser::AssignResidue(OpenBabel::OBMol&, int, int, int)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/chains.cpp:1471: warning: 'void OpenBabel::OBChainsParser::AssignResidue(OpenBabel::OBMol&, int, int, int)' defined locally after being referenced with dllimport linkage c:/workspace/openbabel-2.2.3/src/chains.cpp:1481: warning: non-inline function 'int OpenBabel::OBChainsParser::IdentifyResidue(void*, OpenBabel::OBMol&, int, int)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/chains.cpp:1481: warning: 'int OpenBabel::OBChainsParser::IdentifyResidue(void*, OpenBabel::OBMol&, int, int)' defined locally after being referenced with dllimport linkage c:/workspace/openbabel-2.2.3/src/chains.cpp:1605: warning: non-inline function 'bool OpenBabel::OBChainsParser::DetermineNucleicBackbone(OpenBabel::OBMol&)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/chains.cpp:1605: warning: 'bool OpenBabel::OBChainsParser::DetermineNucleicBackbone(OpenBabel::OBMol&)' defined locally after being referenced with dllimport linkage c:/workspace/openbabel-2.2.3/src/chains.cpp:1631: warning: non-inline function 'void OpenBabel::OBChainsParser::TraceNucleicChain(OpenBabel::OBMol&, int, int)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/chains.cpp:1631: warning: 'void OpenBabel::OBChainsParser::TraceNucleicChain(OpenBabel::OBMol&, int, int)' defined locally after being referenced with dllimport linkage c:/workspace/openbabel-2.2.3/src/chains.cpp:1772: warning: non-inline function 'bool OpenBabel::OBChainsParser::DetermineNucleicSidechains(OpenBabel::OBMol&)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/chains.cpp:1772: warning: 'bool OpenBabel::OBChainsParser::DetermineNucleicSidechains(OpenBabel::OBMol&)' defined locally after being referenced with dllimport linkage c:/workspace/openbabel-2.2.3/src/chains.cpp:1788: warning: non-inline function 'bool OpenBabel::OBChainsParser::DetermineHydrogens(OpenBabel::OBMol&)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/chains.cpp:1788: warning: 'bool OpenBabel::OBChainsParser::DetermineHydrogens(OpenBabel::OBMol&)' defined locally after being referenced with dllimport linkage c:/workspace/openbabel-2.2.3/src/chains.cpp:1838: warning: non-inline function 'void OpenBabel::OBChainsParser::DefineMonomer(void**, int, const char*)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/chains.cpp:1838: warning: 'void OpenBabel::OBChainsParser::DefineMonomer(void**, int, const char*)' defined locally after being referenced with dllimport linkage c:/workspace/openbabel-2.2.3/src/chains.cpp:2161: warning: non-inline function 'const char* OpenBabel::OBChainsParser::ParseSmiles(const char*, int)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/chains.cpp:2161: warning: 'const char* OpenBabel::OBChainsParser::ParseSmiles(const char*, int)' defined locally after being referenced with dllimport linkage c:/workspace/openbabel-2.2.3/src/chains.cpp: In member function `int OpenBabel::OBChainsParser::IdentifyElement(char*)': c:/workspace/openbabel-2.2.3/src/chains.cpp:1857: warning: non-inline function 'int OpenBabel::OBChainsParser::IdentifyElement(char*)' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/chains.cpp: In destructor `OpenBabel::OBChainsParser::~OBChainsParser()': c:/workspace/openbabel-2.2.3/src/chains.cpp:775: warning: non-inline function 'OpenBabel::OBChainsParser::~OBChainsParser()' is defined after prior declaration as dllimport: attribute ignored c:/workspace/openbabel-2.2.3/src/chains.cpp: In constructor `OpenBabel::OBChainsParser::OBChainsParser()': c:/workspace/openbabel-2.2.3/src/chains.cpp:256: internal compiler error: in rest_of_handle_final, at toplev.c:2067 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.mingw.org/bugs.shtml> for instructions. make[2]: *** [src/CMakeFiles/openbabel-2.dir/chains.obj] Error 1 make[1]: *** [src/CMakeFiles/openbabel-2.dir/all] Error 2 make: *** [all] Error 2 It seems that dllimport is declared before function in static compilation. Is there another way to compile OpenBabel static library on windows? Jonathan Dubois ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss