[odb-users] Build odb on win32

Graf László grafl at datatrans.hu
Sat Jul 9 15:26:02 EDT 2011


 Hi all,

 I would like to build the odb packages on windows xp sp3
 using vs2008. I red the documentation about this topic on
 your site and I found these lines:

 "In order to build ODB source packages you will need Microsoft
 Visual Studio 2008 (VC++ 9.0) or later. You will also most
 likely need a client library for the database system of your
 choice. For example, for MySQL you need the libmysqlclient
 library. The INSTALL file accompanying each database runtime
 library has more information on the database-specific
 prerequisites."

 OK, I have the vs2008 but after creating the solution and
 the odb project but during the compile process I get these errors 
 below.
 Where can I find the cutl library or other missing files?

 Thank you,
 grafl

 1>------ Build started: Project: odb, Configuration: Release Win32 
 ------
 1>Compiling...
 1>unit.cxx
 1>F:\src\c_cpp\odb\odb\odb/gcc.hxx(16) : fatal error C1083: Cannot open 
 include file: 'gmp.h': No such file or directory
 1>union.cxx
 1>.\odb\odb\semantics\union.cxx(6) : fatal error C1083: Cannot open 
 include file: 'cutl/compiler/type-info.hxx': No such file or directory
 1>union-template.cxx
 1>.\odb\odb\semantics\union-template.cxx(6) : fatal error C1083: Cannot 
 open include file: 'cutl/compiler/type-info.hxx': No such file or 
 directory
 1>template.cxx
 1>.\odb\odb\semantics\template.cxx(6) : fatal error C1083: Cannot open 
 include file: 'cutl/compiler/type-info.hxx': No such file or directory
 1>namespace.cxx
 1>.\odb\odb\semantics\namespace.cxx(6) : fatal error C1083: Cannot open 
 include file: 'cutl/compiler/type-info.hxx': No such file or directory
 1>fundamental.cxx
 1>.\odb\odb\semantics\fundamental.cxx(6) : fatal error C1083: Cannot 
 open include file: 'cutl/compiler/type-info.hxx': No such file or 
 directory
 1>enum.cxx
 1>.\odb\odb\semantics\enum.cxx(6) : fatal error C1083: Cannot open 
 include file: 'cutl/compiler/type-info.hxx': No such file or directory
 1>elements.cxx
 1>F:\src\c_cpp\odb\odb\odb/gcc.hxx(16) : fatal error C1083: Cannot open 
 include file: 'gmp.h': No such file or directory
 1>derived.cxx
 1>.\odb\odb\semantics\derived.cxx(6) : fatal error C1083: Cannot open 
 include file: 'cutl/compiler/type-info.hxx': No such file or directory
 1>class.cxx
 1>F:\src\c_cpp\odb\odb\odb/gcc.hxx(16) : fatal error C1083: Cannot open 
 include file: 'gmp.h': No such file or directory
 1>class-template.cxx
 1>.\odb\odb\semantics\class-template.cxx(6) : fatal error C1083: Cannot 
 open include file: 'cutl/compiler/type-info.hxx': No such file or 
 directory
 1>type-processor.cxx
 1>F:\src\c_cpp\odb\odb\odb/gcc.hxx(16) : fatal error C1083: Cannot open 
 include file: 'gmp.h': No such file or directory
 1>source.cxx
 1>F:\src\c_cpp\odb\odb\odb/context.hxx(18) : fatal error C1083: Cannot 
 open include file: 'cutl/re.hxx': No such file or directory
 1>schema.cxx
 1>F:\src\c_cpp\odb\odb\odb/context.hxx(18) : fatal error C1083: Cannot 
 open include file: 'cutl/re.hxx': No such file or directory
 1>validator.cxx
 1>F:\src\c_cpp\odb\odb\odb/gcc.hxx(16) : fatal error C1083: Cannot open 
 include file: 'gmp.h': No such file or directory
 1>profile.cxx
 1>.\odb\odb\profile.cxx(6) : fatal error C1083: Cannot open include 
 file: 'unistd.h': No such file or directory
 1>pragma.cxx
 1>F:\src\c_cpp\odb\odb\odb/gcc.hxx(16) : fatal error C1083: Cannot open 
 include file: 'gmp.h': No such file or directory
 1>plugin.cxx
 1>F:\src\c_cpp\odb\odb\odb/gcc.hxx(16) : fatal error C1083: Cannot open 
 include file: 'gmp.h': No such file or directory
 1>parser.cxx
 1>F:\src\c_cpp\odb\odb\odb/gcc.hxx(16) : fatal error C1083: Cannot open 
 include file: 'gmp.h': No such file or directory
 1>option-types.cxx
 1>.\odb\odb\option-types.cxx(39) : error C2061: syntax error : 
 identifier 'database_'
 1>.\odb\odb\option-types.cxx(39) : error C2059: syntax error : ')'
 1>.\odb\odb\option-types.cxx(39) : error C2143: syntax error : missing 
 ')' before ';'
 1>.\odb\odb\option-types.cxx(40) : error C2061: syntax error : 
 identifier 'lower_bound'
 1>.\odb\odb\option-types.cxx(40) : error C2059: syntax error : ')'
 1>.\odb\odb\option-types.cxx(40) : error C2143: syntax error : missing 
 ')' before ';'
 1>.\odb\odb\option-types.cxx(42) : error C2784: 'bool std::operator 
 ==(const std::istream_iterator<_Ty,_Elem,_Traits,_Diff> &,const 
 std::istream_iterator<_Ty,_Elem,_Traits,_Diff> &)' : could not deduce 
 template argument for 'const 
 std::istream_iterator<_Ty,_Elem,_Traits,_Diff> &' from 'const char 
 **(void)'
 1>        C:\Program Files\Microsoft Visual Studio 
 9.0\VC\include\iterator(266) : see declaration of 'std::operator =='
 1>.\odb\odb\option-types.cxx(42) : error C2784: 'bool std::operator 
 ==(const std::basic_string<_Elem,_Traits,_Alloc> &,const _Elem *)' : 
 could not deduce template argument for 'const 
 std::basic_string<_Elem,_Traits,_Alloc> &' from 'const char **(void)'
 1>        C:\Program Files\Microsoft Visual Studio 
 9.0\VC\include\string(90) : see declaration of 'std::operator =='
 1>.\odb\odb\option-types.cxx(42) : error C2782: 'bool std::operator 
 ==(const _Elem *,const std::basic_string<_Elem,_Traits,_Alloc> &)' : 
 template parameter '_Elem' is ambiguous
 1>        C:\Program Files\Microsoft Visual Studio 
 9.0\VC\include\string(80) : see declaration of 'std::operator =='
 1>        could be 'char'
 1>        or       'const char **(void)'
 1>.\odb\odb\option-types.cxx(42) : error C2784: 'bool std::operator 
 ==(const std::basic_string<_Elem,_Traits,_Alloc> &,const 
 std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template 
 argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 
 'const char **(void)'
 1>        C:\Program Files\Microsoft Visual Studio 
 9.0\VC\include\string(70) : see declaration of 'std::operator =='
 1>.\odb\odb\option-types.cxx(42) : error C2784: 'bool std::operator 
 ==(const std::istreambuf_iterator<_Elem,_Traits> &,const 
 std::istreambuf_iterator<_Elem,_Traits> &)' : could not deduce template 
 argument for 'const std::istreambuf_iterator<_Elem,_Traits> &' from 
 'const char **(void)'
 1>        C:\Program Files\Microsoft Visual Studio 
 9.0\VC\include\streambuf(548) : see declaration of 'std::operator =='
 1>.\odb\odb\option-types.cxx(42) : error C2784: 'bool std::operator 
 ==(const std::allocator<_Ty> &,const std::allocator<_Other> &) throw()' 
 : could not deduce template argument for 'const std::allocator<_Ty> &' 
 from 'const char **(void)'
 1>        C:\Program Files\Microsoft Visual Studio 
 9.0\VC\include\xmemory(173) : see declaration of 'std::operator =='
 1>.\odb\odb\option-types.cxx(42) : error C2784: 'bool std::operator 
 ==(const std::reverse_iterator<_RanIt> &,const 
 std::reverse_iterator<_RanIt2> &)' : could not deduce template argument 
 for 'const std::reverse_iterator<_RanIt> &' from 'const char **(void)'
 1>        C:\Program Files\Microsoft Visual Studio 
 9.0\VC\include\xutility(2220) : see declaration of 'std::operator =='
 1>.\odb\odb\option-types.cxx(42) : error C2784: 'bool std::operator 
 ==(const std::_Revranit<_RanIt,_Base> &,const 
 std::_Revranit<_RanIt2,_Base2> &)' : could not deduce template argument 
 for 'const std::_Revranit<_RanIt,_Base> &' from 'const char **(void)'
 1>        C:\Program Files\Microsoft Visual Studio 
 9.0\VC\include\xutility(2024) : see declaration of 'std::operator =='
 1>.\odb\odb\option-types.cxx(42) : error C2784: 'bool std::operator 
 ==(const std::pair<_Ty1,_Ty2> &,const std::pair<_Ty1,_Ty2> &)' : could 
 not deduce template argument for 'const std::pair<_Ty1,_Ty2> &' from 
 'const char **(void)'
 1>        C:\Program Files\Microsoft Visual Studio 
 9.0\VC\include\utility(68) : see declaration of 'std::operator =='
 1>.\odb\odb\option-types.cxx(42) : error C2677: binary '==' : no global 
 operator found which takes type 'std::string' (or there is no acceptable 
 conversion)
 1>.\odb\odb\option-types.cxx(43) : error C2296: '-' : illegal, left 
 operand has type 'const char **(__cdecl *)(void)'
 1>.\odb\odb\option-types.cxx(43) : error C2514: 'database::value' : 
 class has no constructors
 1>        F:\src\c_cpp\odb\odb\odb/option-types.hxx(14) : see 
 declaration of 'database::value'
 1>.\odb\odb\option-types.cxx(79) : error C2061: syntax error : 
 identifier 'schema_format_'
 1>.\odb\odb\option-types.cxx(79) : error C2059: syntax error : ')'
 1>.\odb\odb\option-types.cxx(79) : error C2143: syntax error : missing 
 ')' before ';'
 1>.\odb\odb\option-types.cxx(80) : error C2061: syntax error : 
 identifier 'lower_bound'
 1>.\odb\odb\option-types.cxx(80) : error C2059: syntax error : ')'
 1>.\odb\odb\option-types.cxx(80) : error C2143: syntax error : missing 
 ')' before ';'
 1>.\odb\odb\option-types.cxx(82) : error C2784: 'bool std::operator 
 ==(const std::istream_iterator<_Ty,_Elem,_Traits,_Diff> &,const 
 std::istream_iterator<_Ty,_Elem,_Traits,_Diff> &)' : could not deduce 
 template argument for 'const 
 std::istream_iterator<_Ty,_Elem,_Traits,_Diff> &' from 'const char 
 **(void)'
 1>        C:\Program Files\Microsoft Visual Studio 
 9.0\VC\include\iterator(266) : see declaration of 'std::operator =='
 1>.\odb\odb\option-types.cxx(82) : error C2784: 'bool std::operator 
 ==(const std::basic_string<_Elem,_Traits,_Alloc> &,const _Elem *)' : 
 could not deduce template argument for 'const 
 std::basic_string<_Elem,_Traits,_Alloc> &' from 'const char **(void)'
 1>        C:\Program Files\Microsoft Visual Studio 
 9.0\VC\include\string(90) : see declaration of 'std::operator =='
 1>.\odb\odb\option-types.cxx(82) : error C2782: 'bool std::operator 
 ==(const _Elem *,const std::basic_string<_Elem,_Traits,_Alloc> &)' : 
 template parameter '_Elem' is ambiguous
 1>        C:\Program Files\Microsoft Visual Studio 
 9.0\VC\include\string(80) : see declaration of 'std::operator =='
 1>        could be 'char'
 1>        or       'const char **(void)'
 1>.\odb\odb\option-types.cxx(82) : error C2784: 'bool std::operator 
 ==(const std::basic_string<_Elem,_Traits,_Alloc> &,const 
 std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template 
 argument for 'const std::basic_string<_Elem,_Traits,_Alloc> &' from 
 'const char **(void)'
 1>        C:\Program Files\Microsoft Visual Studio 
 9.0\VC\include\string(70) : see declaration of 'std::operator =='
 1>.\odb\odb\option-types.cxx(82) : error C2784: 'bool std::operator 
 ==(const std::istreambuf_iterator<_Elem,_Traits> &,const 
 std::istreambuf_iterator<_Elem,_Traits> &)' : could not deduce template 
 argument for 'const std::istreambuf_iterator<_Elem,_Traits> &' from 
 'const char **(void)'
 1>        C:\Program Files\Microsoft Visual Studio 
 9.0\VC\include\streambuf(548) : see declaration of 'std::operator =='
 1>.\odb\odb\option-types.cxx(82) : error C2784: 'bool std::operator 
 ==(const std::allocator<_Ty> &,const std::allocator<_Other> &) throw()' 
 : could not deduce template argument for 'const std::allocator<_Ty> &' 
 from 'const char **(void)'
 1>        C:\Program Files\Microsoft Visual Studio 
 9.0\VC\include\xmemory(173) : see declaration of 'std::operator =='
 1>.\odb\odb\option-types.cxx(82) : error C2784: 'bool std::operator 
 ==(const std::reverse_iterator<_RanIt> &,const 
 std::reverse_iterator<_RanIt2> &)' : could not deduce template argument 
 for 'const std::reverse_iterator<_RanIt> &' from 'const char **(void)'
 1>        C:\Program Files\Microsoft Visual Studio 
 9.0\VC\include\xutility(2220) : see declaration of 'std::operator =='
 1>.\odb\odb\option-types.cxx(82) : error C2784: 'bool std::operator 
 ==(const std::_Revranit<_RanIt,_Base> &,const 
 std::_Revranit<_RanIt2,_Base2> &)' : could not deduce template argument 
 for 'const std::_Revranit<_RanIt,_Base> &' from 'const char **(void)'
 1>        C:\Program Files\Microsoft Visual Studio 
 9.0\VC\include\xutility(2024) : see declaration of 'std::operator =='
 1>.\odb\odb\option-types.cxx(82) : error C2784: 'bool std::operator 
 ==(const std::pair<_Ty1,_Ty2> &,const std::pair<_Ty1,_Ty2> &)' : could 
 not deduce template argument for 'const std::pair<_Ty1,_Ty2> &' from 
 'const char **(void)'
 1>        C:\Program Files\Microsoft Visual Studio 
 9.0\VC\include\utility(68) : see declaration of 'std::operator =='
 1>.\odb\odb\option-types.cxx(82) : error C2677: binary '==' : no global 
 operator found which takes type 'std::string' (or there is no acceptable 
 conversion)
 1>.\odb\odb\option-types.cxx(83) : error C2296: '-' : illegal, left 
 operand has type 'const char **(__cdecl *)(void)'
 1>.\odb\odb\option-types.cxx(83) : error C2514: 'schema_format::value' 
 : class has no constructors
 1>        F:\src\c_cpp\odb\odb\odb/option-types.hxx(44) : see 
 declaration of 'schema_format::value'
 1>Compiling...
 1>option-functions.cxx
 1>F:\src\c_cpp\odb\odb\odb/option-functions.hxx(9) : fatal error C1083: 
 Cannot open include file: 'odb/options.hxx': No such file or directory
 1>odb.cxx
 1>.\odb\odb\odb.cxx(9) : fatal error C1083: Cannot open include file: 
 'unistd.h': No such file or directory
 1>inline.cxx
 1>F:\src\c_cpp\odb\odb\odb/context.hxx(18) : fatal error C1083: Cannot 
 open include file: 'cutl/re.hxx': No such file or directory
 1>include.cxx
 1>F:\src\c_cpp\odb\odb\odb/gcc.hxx(16) : fatal error C1083: Cannot open 
 include file: 'gmp.h': No such file or directory
 1>header.cxx
 1>F:\src\c_cpp\odb\odb\odb/context.hxx(18) : fatal error C1083: Cannot 
 open include file: 'cutl/re.hxx': No such file or directory
 1>generator.cxx
 1>.\odb\odb\generator.cxx(12) : fatal error C1083: Cannot open include 
 file: 'cutl/fs/auto-remove.hxx': No such file or directory
 1>error.cxx
 1>F:\src\c_cpp\odb\odb\odb/gcc.hxx(16) : fatal error C1083: Cannot open 
 include file: 'gmp.h': No such file or directory
 1>emitter.cxx
 1>F:\src\c_cpp\odb\odb\odb/context.hxx(18) : fatal error C1083: Cannot 
 open include file: 'cutl/re.hxx': No such file or directory
 1>cxx-lexer.cxx
 1>F:\src\c_cpp\odb\odb\odb/gcc.hxx(16) : fatal error C1083: Cannot open 
 include file: 'gmp.h': No such file or directory
 1>context.cxx
 1>F:\src\c_cpp\odb\odb\odb/context.hxx(18) : fatal error C1083: Cannot 
 open include file: 'cutl/re.hxx': No such file or directory
 1>common.cxx
 1>.\odb\odb\relational\common.cxx(10) : fatal error C1083: Cannot open 
 include file: 'cxxabi.h': No such file or directory
 1>Build log was saved at "file://f:\src\c_cpp\odb\Release\BuildLog.htm"
 1>odb - 66 error(s), 0 warning(s)



More information about the odb-users mailing list