openbabel / openbabel

Open Babel is a chemical toolbox designed to speak the many languages of chemical data.
http://openbabel.org/
GNU General Public License v2.0
1k stars 405 forks source link

reaction.h(27) : error C2386: 'tr1' : symbol name exists #778

Closed openbabel-bot closed 7 years ago

openbabel-bot commented 15 years ago

revision 2588

this one is still hanging on using boost include dir but still lots of 'shared_ptr' : is not a member of 'std::tr1'

the rest works but VS2008 consistently barfs on this one

played with the include directive in reaction.h but it is like shooting in the dark - no difference

ideas to try?

results: ------ Skipped Build: Project: OBGUI, Configuration: Debug Win32 ------ Project not selected to build for this solution configuration ------ Skipped Build: Project: OBJava, Configuration: Debug Win32 ------ Project not selected to build for this solution configuration ------ Skipped Build: Project: OBCSharp, Configuration: Debug Win32 ------ Project not selected to build for this solution configuration ------ Skipped Build: Project: OBPythonOBF, Configuration: Release Win32 ------ Project not selected to build for this solution configuration ------ Build started: Project: OBMoreFormats, Configuration: Debug Win32 ------ Copying compiler-specific babelconfig.h (if out of date) 0 File(s) copied Compiling... acrformat.cpp adfformat.cpp alchemyformat.cpp amberformat.cpp balstformat.cpp bgfformat.cpp boxformat.cpp cacaoformat.cpp cacheformat.cpp carformat.cpp cccformat.cpp chem3dformat.cpp chemdrawcdx.cpp c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(27) : error C2386: 'tr1' : a symbol with this name already exists in the current scope c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(44) : error C2039: 'shared_ptr' : is not a member of 'std::tr1' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(44) : error C2065: 'shared_ptr' : undeclared identifier c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(44) : error C2275: 'OpenBabel::OBMol' : illegal use of this type as an expression c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/mol.h(104) : see declaration of 'OpenBabel::OBMol' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(44) : error C2059: syntax error : '>' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(44) : error C2238: unexpected token(s) preceding ';' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(45) : error C2039: 'shared_ptr' : is not a member of 'std::tr1' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(45) : error C2065: 'shared_ptr' : undeclared identifier c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(45) : error C2275: 'OpenBabel::OBMol' : illegal use of this type as an expression c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/mol.h(104) : see declaration of 'OpenBabel::OBMol' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(45) : error C2059: syntax error : '>' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(45) : error C2238: unexpected token(s) preceding ';' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(46) : error C2039: 'shared_ptr' : is not a member of 'std::tr1' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(46) : error C2143: syntax error : missing ';' before '<' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(46) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(46) : error C2238: unexpected token(s) preceding ';' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(47) : error C2039: 'shared_ptr' : is not a member of 'std::tr1' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(47) : error C2143: syntax error : missing ';' before '<' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(47) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(47) : error C2238: unexpected token(s) preceding ';' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(61) : error C2039: 'shared_ptr' : is not a member of 'std::tr1' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(61) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(61) : error C2143: syntax error : missing ',' before '<' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(64) : error C2039: 'shared_ptr' : is not a member of 'std::tr1' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(64) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(64) : error C2143: syntax error : missing ',' before '<' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(67) : error C2039: 'shared_ptr' : is not a member of 'std::tr1' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(67) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(67) : error C2143: syntax error : missing ',' before '<' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(70) : error C2039: 'shared_ptr' : is not a member of 'std::tr1' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(70) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(70) : error C2143: syntax error : missing ',' before '<' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(73) : error C2039: 'shared_ptr' : is not a member of 'std::tr1' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(73) : error C2143: syntax error : missing ';' before '<' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(73) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(74) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(80) : error C2039: 'shared_ptr' : is not a member of 'std::tr1' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(80) : error C2143: syntax error : missing ';' before '<' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(80) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(81) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(88) : error C2039: 'shared_ptr' : is not a member of 'std::tr1' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(88) : error C2143: syntax error : missing ';' before '<' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(88) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(89) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(91) : error C2039: 'shared_ptr' : is not a member of 'std::tr1' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(91) : error C2143: syntax error : missing ';' before '<' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(91) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(92) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(56) : error C2065: '_reactants' : undeclared identifier c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(56) : error C2228: left of '.size' must have class/struct/union type is ''unknown-type'' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(59) : error C2065: '_products' : undeclared identifier c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(59) : error C2228: left of '.size' must have class/struct/union type is ''unknown-type'' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(62) : error C2065: '_reactants' : undeclared identifier c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(62) : error C2228: left of '.push_back' must have class/struct/union type is ''unknown-type'' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(62) : error C2065: 'sp' : undeclared identifier c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(65) : error C2065: '_products' : undeclared identifier c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(65) : error C2228: left of '.push_back' must have class/struct/union type is ''unknown-type'' c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(65) : error C2065: 'sp' : undeclared identifier c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(68) : error C2065: '_ts' : undeclared identifier c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(68) : error C2065: 'sp' : undeclared identifier c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(71) : error C2065: '_agent' : undeclared identifier c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(71) : error C2065: 'sp' : undeclared identifier ....\src\formats\chemdrawcdx.cpp(755) : warning C4065: switch statement contains 'default' but no 'case' labels ....\src\formats\chemdrawcdx.cpp(1087) : warning C4065: switch statement contains 'default' but no 'case' labels chemdrawct.cpp chemtoolformat.cpp cifformat.cpp C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(161) : warning C4503: 'std::_Tree<_Traits>::_Key' : decorated name length exceeded, name was truncated with [ _Traits=std::_Tmap_traits<std::set,std::map<OpenBabel::ci_string,std::vector>,std::less<std::set>,std::allocator<std::pair<const std::set,std::map<OpenBabel::ci_string,std::vector>>>,false> ] C:\Program Files\Microsoft Visual Studio 9.0\VC\include\map(78) : see reference to class template instantiation 'std::_Tree<_Traits>' being compiled with [ _Traits=std::_Tmap_traits<std::set,std::map<OpenBabel::ci_string,std::vector>,std::less<std::set>,std::allocator<std::pair<const std::set,std::map<OpenBabel::ci_string,std::vector>>>,false> ] ....\src\formats\cifformat.cpp(176) : see reference to class template instantiation 'std::map<_Kty,_Ty>' being compiled with [ _Kty=std::set, _Ty=std::map<OpenBabel::ci_string,std::vector> ] C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(181) : warning C4503: 'std::_Tree<_Traits>::_Myval' : decorated name length exceeded, name was truncated with [ _Traits=std::_Tmap_traits<std::set,std::map<OpenBabel::ci_string,std::vector>,std::less<std::set>,std::allocator<std::pair<const std::set,std::map<OpenBabel::ci_string,std::vector>>>,false> ] C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(630) : warning C4503: 'std::_Tree<_Traits>::insert' : decorated name length exceeded, name was truncated with [ _Traits=std::_Tmap_traits<std::set,std::map<OpenBabel::ci_string,std::vector>,std::less<std::set>,std::allocator<std::pair<const std::set,std::map<OpenBabel::ci_string,std::vector>>>,false> ] C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(1023) : warning C4503: 'std::_Tree<_Traits>::equal_range' : decorated name length exceeded, name was truncated with [ _Traits=std::_Tmap_traits<std::set,std::map<OpenBabel::ci_string,std::vector>,std::less<std::set>,std::allocator<std::pair<const std::set,std::map<OpenBabel::ci_string,std::vector>>>,false> ] C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(1028) : warning C4503: 'std::_Tree<_Traits>::equal_range' : decorated name length exceeded, name was truncated with [ _Traits=std::_Tmap_traits<std::set,std::map<OpenBabel::ci_string,std::vector>,std::less<std::set>,std::allocator<std::pair<const std::set,std::map<OpenBabel::ci_string,std::vector>>>,false> ] C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(1098) : warning C4503: 'std::_Tree<_Traits>::_Eqrange' : decorated name length exceeded, name was truncated with [ _Traits=std::_Tmap_traits<std::set,std::map<OpenBabel::ci_string,std::vector>,std::less<std::set>,std::allocator<std::pair<const std::set,std::map<OpenBabel::ci_string,std::vector>>>,false> ] C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(1132) : warning C4503: 'std::_Tree<_Traits>::_Eqrange' : decorated name length exceeded, name was truncated with [ _Traits=std::_Tmap_traits<std::set,std::map<OpenBabel::ci_string,std::vector>,std::less<std::set>,std::allocator<std::pair<const std::set,std::map<OpenBabel::ci_string,std::vector>>>,false> ] C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(1187) : warning C4503: 'std::_Tree<_Traits>::_Insert' : decorated name length exceeded, name was truncated with [ _Traits=std::_Tmap_traits<std::set,std::map<OpenBabel::ci_string,std::vector>,std::less<std::set>,std::allocator<std::pair<const std::set,std::map<OpenBabel::ci_string,std::vector>>>,false> ] C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(1263) : warning C4503: 'std::_Tree<_Traits>::_Lbound' : decorated name length exceeded, name was truncated with [ _Traits=std::_Tmap_traits<std::set,std::map<OpenBabel::ci_string,std::vector>,std::less<std::set>,std::allocator<std::pair<const std::set,std::map<OpenBabel::ci_string,std::vector>>>,false> ] C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(1349) : warning C4503: 'std::_Tree<_Traits>::_Ubound' : decorated name length exceeded, name was truncated with [ _Traits=std::_Tmap_traits<std::set,std::map<OpenBabel::ci_string,std::vector>,std::less<std::set>,std::allocator<std::pair<const std::set,std::map<OpenBabel::ci_string,std::vector>>>,false> ] C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(1408) : warning C4503: 'std::_Tree<_Traits>::_Buynode' : decorated name length exceeded, name was truncated with [ _Traits=std::_Tmap_traits<std::set,std::map<OpenBabel::ci_string,std::vector>,std::less<std::set>,std::allocator<std::pair<const std::set,std::map<OpenBabel::ci_string,std::vector>>>,false> ] ....\src\formats\cifformat.cpp(284) : warning C4305: '=' : truncation from 'double' to 'float' ....\src\formats\cifformat.cpp(285) : warning C4305: '=' : truncation from 'double' to 'float' ....\src\formats\cifformat.cpp(286) : warning C4305: '*=' : truncation from 'double' to 'float' C:\Program Files\Microsoft Visual Studio 9.0\VC\include\vector(203) : warning C4503: 'std::_Tree<_Traits>::_Key' : decorated name length exceeded, name was truncated with [ _Traits=std::_Tmap_traits<std::set,std::map<OpenBabel::ci_string,std::vector>,std::less<std::set>,std::allocator<std::pair<const std::set,std::map<OpenBabel::ci_string,std::vector>>>,false> ] C:\Program Files\Microsoft Visual Studio 9.0\VC\include\vector(203) : warning C4503: 'std::_Tree<_Traits>::_Myval' : decorated name length exceeded, name was truncated with [ _Traits=std::_Tmap_traits<std::set,std::map<OpenBabel::ci_string,std::vector>,std::less<std::set>,std::allocator<std::pair<const std::set,std::map<OpenBabel::ci_string,std::vector>>>,false> ] C:\Program Files\Microsoft Visual Studio 9.0\VC\include\vector(203) : warning C4503: 'std::_Tree<_Traits>::insert' : decorated name length exceeded, name was truncated with [ _Traits=std::_Tmap_traits<std::set,std::map<OpenBabel::ci_string,std::vector>,std::less<std::set>,std::allocator<std::pair<const std::set,std::map<OpenBabel::ci_string,std::vector>>>,false> ] C:\Program Files\Microsoft Visual Studio 9.0\VC\include\vector(203) : warning C4503: 'std::_Tree<_Traits>::_Insert' : decorated name length exceeded, name was truncated with [ _Traits=std::_Tmap_traits<std::set,std::map<OpenBabel::ci_string,std::vector>,std::less<std::set>,std::allocator<std::pair<const std::set,std::map<OpenBabel::ci_string,std::vector>>>,false> ] C:\Program Files\Microsoft Visual Studio 9.0\VC\include\vector(203) : warning C4503: 'std::_Tree<_Traits>::_Lbound' : decorated name length exceeded, name was truncated with [ _Traits=std::_Tmap_traits<std::set,std::map<OpenBabel::ci_string,std::vector>,std::less<std::set>,std::allocator<std::pair<const std::set,std::map<OpenBabel::ci_string,std::vector>>>,false> ] C:\Program Files\Microsoft Visual Studio 9.0\VC\include\vector(203) : warning C4503: 'std::_Tree<_Traits>::_Buynode' : decorated name length exceeded, name was truncated with [ _Traits=std::_Tmap_traits<std::set,std::map<OpenBabel::ci_string,std::vector>,std::less<std::set>,std::allocator<std::pair<const std::set,std::map<OpenBabel::ci_string,std::vector>>>,false> ] crkformat.cpp CSRformat.cpp cssrformat.cpp dmolformat.cpp Generating Code... Compiling... fastaformat.cpp fchkformat.cpp featformat.cpp fhformat.cpp freefracformat.cpp gamessformat.cpp gausscubeformat.cpp ....\src\formats\gausscubeformat.cpp(576) : warning C4146: unary minus operator applied to unsigned type, result still unsigned gaussformat.cpp gausszmatformat.cpp ghemicalformat.cpp gromos96format.cpp hinformat.cpp jaguarformat.cpp mmcifformat.cpp mmodformat.cpp moldenformat.cpp mopacformat.cpp mpdformat.cpp mpqcformat.cpp msiformat.cpp Generating Code... Compiling... msmsformat.cpp nwchemformat.cpp pcmodelformat.cpp PQSformat.cpp qchemformat.cpp shelxformat.cpp tinkerformat.cpp turbomoleformat.cpp unichemformat.cpp viewmolformat.cpp xedformat.cpp xyzformat.cpp yasaraformat.cpp zindoformat.cpp Generating Code... Creating browse information file... Microsoft Browse Information Maintenance Utility Version 9.00.21022 Copyright (C) Microsoft Corporation. All rights reserved. BSCMAKE: error BK1506 : cannot open file '.\Debug\KFReader.sbr': No such file or directory Build log was saved at "file://c:\PFE.Sardonyx\OpenBabel.SVN\windows-ae-vc2008\OBMoreFormats\Debug\BuildLog.htm" OBMoreFormats - 62 error(s), 23 warning(s) ------ Build started: Project: OBXMLFormats, Configuration: Debug Win32 ------ Copying compiler-specific babelconfig.h (if out of date) 0 File(s) copied Compiling... chemkinformat.cpp c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(26) : fatal error C1083: Cannot open include file: 'boost/shared_ptr.hpp': No such file or directory cmlformat.cpp c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(26) : fatal error C1083: Cannot open include file: 'boost/shared_ptr.hpp': No such file or directory cmlreactformat.cpp c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(26) : fatal error C1083: Cannot open include file: 'boost/shared_ptr.hpp': No such file or directory rsmiformat.cpp c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(26) : fatal error C1083: Cannot open include file: 'boost/shared_ptr.hpp': No such file or directory rxnformat.cpp c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/reaction.h(26) : fatal error C1083: Cannot open include file: 'boost/shared_ptr.hpp': No such file or directory Generating Code... Creating browse information file... Microsoft Browse Information Maintenance Utility Version 9.00.21022 Copyright (C) Microsoft Corporation. All rights reserved. BSCMAKE: error BK1506 : cannot open file '.\Debug\chemkinformat.sbr': No such file or directory Build log was saved at "file://c:\PFE.Sardonyx\OpenBabel.SVN\windows-ae-vc2008\OBXMLFormats\Debug\BuildLog.htm" OBXMLFormats - 6 error(s), 0 warning(s) ========== Build: 0 succeeded, 2 failed, 12 up-to-date, 4 skipped ==========

Reported by: peterennis

openbabel-bot commented 15 years ago

Logged In: YES user_id=1918617 Originator: YES

doing some more tracing, show include files and boost/detail/workaround.hpp is where it starts to go wrong

this file contains info related to fixes for various compilers

the latest boost provides support for VC9 (VS2008) but it seems that it is not configured or called in the application

(makes sense as the recommended version is VS2005)

hopefully someone with more knowledge will be able to grok this file and get it sorted

Original comment by: peterennis

openbabel-bot commented 15 years ago

OBMoreFormats revision 2588 include files.txt

Original comment by: peterennis

openbabel-bot commented 15 years ago

Logged In: YES user_id=1918617 Originator: YES

problems loading the file, this one should be good

File Added: OBMoreFormats revision 2588 include files.txt

Original comment by: peterennis

openbabel-bot commented 15 years ago

Logged In: NO

Like I said, this is still best dealt with on the mailing list. I note you are compiling in Debug Mode, not Release. Have you tried copying the boost dir to openbabeltrunk/include? I find this an easier way to 'install' boost. If you do this, there should be a file openbabeltrunk/include/boost/shared_ptr.hpp.

Original comment by: nobody

openbabel-bot commented 15 years ago

Logged In: YES user_id=1189615 Originator: NO

It looks as if the C++ library you are using already has std::tr1 defined. If so, shared_ptr will already be defined and boost isn't needed. Could you try removing the line

define USE_BOOST in windows-vc2005/babelconfig.h

If this works (I hope you will use the mailing list to let us know) I'll sort out a version dependent fix in babelconfig.h. According to http://blogs.msdn.com/vcblog/archive/2008/01/08/q-a-on-our-tr1-implementation.aspx tr1 support appeared in a "Feature Pack" for Visual C++ 2008 and is not applicable to the Express version or to Visual C++ 2005.

Chris

Original comment by: @chrismorl

openbabel-bot commented 15 years ago

OpenBabelOBF revision 2600.txt

Original comment by: peterennis

openbabel-bot commented 15 years ago

Logged In: YES user_id=1918617 Originator: YES

revision 2600 report attached removed boost, looks better some error references to tr1/memory some missing include files I think you are getting close

too busy right now for another mailing list

File Added: OpenBabelOBF revision 2600.txt

Original comment by: peterennis

openbabel-bot commented 15 years ago

Logged In: NO

I don't know where your tr1 header files are stored and what they are called. Try looking for a file called shared_ptr or shared_ptr.h If these can't found try looking for shared_ptr is any header file. Then I'll be able to change reaction.h or babelconfig.h.

You need to update all the SVN files (up to the folder which containd the file ChangeLog. One of the errors was probabley due to that.

Chris (c.morley AT gaseq.co.uk)

Original comment by: nobody

openbabel-bot commented 15 years ago

OpenBabelOBF revision 2600-1.txt

Original comment by: peterennis

openbabel-bot commented 15 years ago

Logged In: YES user_id=1918617 Originator: YES

updated all svn files revision 2600, log file OpenBabelOBF revision 2600-1.txt attached

..\Debug/OBDLLD.dll : fatal error LNK1120: 3 unresolved externals

lots of:

obiter.h(330) : warning C4800:...

..\Debug/OBDESCD.obf : fatal error LNK1120: 3 unresolved externals

..\Debug/OBFPRTD.obf : fatal error LNK1120: 3 unresolved externals

this one still exists:

cifformat.cpp c:\PFE.Sardonyx\OpenBabel.SVN\include\openbabel/obiter.h(330) : warning C4800: 'unsigned int' : forcing value to bool 'true' or 'false' (performance warning) C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(161) : warning C4503: 'std::_Tree<_Traits>::_Key' : decorated name length exceeded, name was truncated with...

File Added: OpenBabelOBF revision 2600-1.txt

Original comment by: peterennis

openbabel-bot commented 15 years ago

OpenBabelOBF revision 2607.txt

Original comment by: peterennis

openbabel-bot commented 15 years ago

Logged In: YES user_id=1918617 Originator: YES

OpenBabelOBF revision 2607.txt attached

looks the same as previous tested revision

...time to install gnuwin32...

File Added: OpenBabelOBF revision 2607.txt

Original comment by: peterennis

openbabel-bot commented 15 years ago

Logged In: YES user_id=1189615 Originator: NO

Openbabel is very close to compiling on your system but it will not do so until some small code changes are made. To make these I need some information that Microsoft does not make easily accessible unless you have bought their product. This would open up Openbabel to other users with VC2008. Could you help with information on the tr1 header files as detailed previously?

Some of the errors you are seeing are new transient ones which are inevitable in development code because of the delay in adjusting the build files when developers using other platforms have made code changes. I can see these and can correct them, but I need help with VC2008.

Chris

Original comment by: @chrismorl

openbabel-bot commented 15 years ago

shared.txt

Original comment by: peterennis

openbabel-bot commented 15 years ago

Logged In: YES user_id=1918617 Originator: YES

did a search for all files with shared in the name

results attached in shared.txt File Added: shared.txt

Original comment by: peterennis

openbabel-bot commented 15 years ago

Logged In: YES user_id=1189615 Originator: NO

Most of the files in shared.txt are from Boost, and we still haven't found the implementation of tr1, if it is there.

I suspect your STL library files are in c:\Program Files\Microsoft Visual Studio 9.0\VC\include\ (It will contain the file called algorithm).

Could you use FindInFiles in Visual Studio to search this directory and its sub-directories for "shared_ptr" (don't use the quotes) or failing that "tr1" (case-insensitive)?

Chris

Original comment by: @chrismorl

openbabel-bot commented 15 years ago

Logged In: YES user_id=1918617 Originator: YES

result for revision 2613 attached

File Added: OpenBabelOBF revision 2613.txt

Original comment by: peterennis

openbabel-bot commented 15 years ago

OpenBabelOBF revision 2613.txt

Original comment by: peterennis

openbabel-bot commented 15 years ago

Logged In: YES user_id=1189615 Originator: NO

It won't compile on your machine until the code is altered to accomodate it. So it would be more helpful to track down the tr1 files than recompiling the program, which is not providing useful information.

Original comment by: @chrismorl

openbabel-bot commented 15 years ago

OpenBabelOBF revision 2617.txt

Original comment by: peterennis

openbabel-bot commented 15 years ago

Logged In: YES user_id=1918617 Originator: YES

results for revision 2717 File Added: OpenBabelOBF revision 2617.txt

Original comment by: peterennis

openbabel-bot commented 15 years ago

Logged In: YES user_id=1918617 Originator: YES

typo in last message s/2717/2617/ attached file is the correct one

Original comment by: peterennis

openbabel-bot commented 15 years ago

Logged In: YES user_id=1918617 Originator: YES

no locations found for shared_ptr under C:\Program Files\Microsoft Visual Studio 9.0\VC\include and subfolders

tr1 found in the following files:

Start C:\Program Files\Microsoft Visual Studio 9.0\VC\include\comutil.h C:\Program Files\Microsoft Visual Studio 9.0\VC\include\functional C:\Program Files\Microsoft Visual Studio 9.0\VC\include\intrin.h C:\Program Files\Microsoft Visual Studio 9.0\VC\include\ios C:\Program Files\Microsoft Visual Studio 9.0\VC\include\mbstring.h C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h C:\Program Files\Microsoft Visual Studio 9.0\VC\include\tchar.h C:\Program Files\Microsoft Visual Studio 9.0\VC\include\wchar.h C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xhash C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xiosbase C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xlocale C:\Program Files\Microsoft Visual Studio 9.0\VC\include\xlocnum Finished

Original comment by: peterennis