Hello,

I have troubles compiling this program:

#include <iostream.h>
#include <iomanip.h>
#include "c:/sqlplus/sqlplus.hh"

int main()
{return(0);}

As you can see, the program itself isn't very
complicated.
When I run this program (using MS Visual C++), here
are the errors I get. Can anybody help me please. I
would really appreciate it. You can reply me using my
mail adress: [EMAIL PROTECTED]

Thanks

--------------------Configuration: prog - Win32
Debug--------------------
Compiling...
prog.cpp
c:\sqlplus\type_info1.hh(31) : error C2758:
'_base_type' : must be initialized in constructor
base/member initializer list
        c:\sqlplus\type_info1.hh(27) : see declaration
of '_base_type'
c:\sqlplus\type_info1.hh(31) : error C2758: '_default'
: must be initialized in constructor base/member
initializer list
        c:\sqlplus\type_info1.hh(28) : see declaration
of '_default'
c:\sqlplus\type_info1.hh(69) : error C2252: 'offset' :
pure specifier can only be specified for functions
c:\sqlplus\type_info1.hh(70) : error C2258: illegal
pure syntax, must be '= 0'
c:\sqlplus\type_info1.hh(70) : error C2252:
'unsigned_offset' : pure specifier can only be
specified for functions
c:\sqlplus\type_info1.hh(71) : error C2258: illegal
pure syntax, must be '= 0'
c:\sqlplus\type_info1.hh(71) : error C2252:
'null_offset' : pure specifier can only be specified
for functions
c:\sqlplus\type_info1.hh(72) : error C2258: illegal
pure syntax, must be '= 0'
c:\sqlplus\type_info1.hh(72) : error C2252:
'unsigned_null_offset' : pure specifier can only be
specified for functions
c:\sqlplus\type_info1.hh(79) : error C2258: illegal
pure syntax, must be '= 0'
c:\sqlplus\type_info1.hh(79) : error C2252:
'string_type' : pure specifier can only be specified
for functions
c:\sqlplus\type_info1.hh(163) : warning C4800:
'unsigned int' : forcing value to bool 'true' or
'false' (performance warning)
c:\sqlplus\type_info1.hh(176) : warning C4800: 'int' :
forcing value to bool 'true' or 'false' (performance
warning)
c:\sqlplus\type_info1.hh(180) : warning C4800: 'int' :
forcing value to bool 'true' or 'false' (performance
warning)
c:\sqlplus\type_info1.hh(184) : warning C4800: 'int' :
forcing value to bool 'true' or 'false' (performance
warning)
c:\sqlplus\type_info1.hh(188) : warning C4800: 'int' :
forcing value to bool 'true' or 'false' (performance
warning)
c:\sqlplus\coldata1.hh(60) : error C2039:
'string_type' : is not a member of 'mysql_type_info'
        c:\sqlplus\type_info1.hh(62) : see declaration
of 'mysql_type_info'
        c:\sqlplus\coldata1.hh(125) : see reference to
class template instantiation 'mysql_ColData<Str>'
being compiled
c:\sqlplus\coldata1.hh(63) : error C2039:
'string_type' : is not a member of 'mysql_type_info'
        c:\sqlplus\type_info1.hh(62) : see declaration
of 'mysql_type_info'
        c:\sqlplus\coldata1.hh(125) : see reference to
class template instantiation 'mysql_ColData<Str>'
being compiled
c:\program files\microsoft visual
studio\vc98\include\strstream(52) : error C2039:
'openmode' : is not a member of 'ios'
        c:\program files\microsoft visual
studio\vc98\include\ios.h(106) : see declaration of
'ios'
c:\program files\microsoft visual
studio\vc98\include\strstream(52) : error C2061:
syntax error : identifier 'openmode'
c:\program files\microsoft visual
studio\vc98\include\strstream(54) : error C2039:
'openmode' : is not a member of 'ios'
        c:\program files\microsoft visual
studio\vc98\include\ios.h(106) : see declaration of
'ios'
c:\program files\microsoft visual
studio\vc98\include\strstream(54) : error C2061:
syntax error : identifier 'openmode'
c:\program files\microsoft visual
studio\vc98\include\strstream(91) : error C2629:
unexpected 'class std::ostrstream ('
c:\program files\microsoft visual
studio\vc98\include\strstream(91) : error C2238:
unexpected token(s) preceding ';'
c:\program files\microsoft visual
studio\vc98\include\strstream(109) : error C2629:
unexpected 'class std::strstream ('
c:\program files\microsoft visual
studio\vc98\include\strstream(109) : error C2238:
unexpected token(s) preceding ';'
c:\program files\microsoft visual
studio\vc98\include\xtree(118) : warning C4786:
'std::_Tree<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> const ,
int>,std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >,std::allocator<int>
>::_Kfn,std::less<std::basic_string<char,std::char_traits<cha
r>,std::allocator<char> > >,std::allocator<int> >' :
identifier was truncated to '255' characters in the
debug information
        c:\program files\microsoft visual
studio\vc98\include\map(46) : see reference to class
template instantiation
'std::_Tree<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,std::pair<std::basic_string<char,std::char_traits<
char>,std::allocator<char> > const
,int>,std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >,std::allocator<int> >::_Kfn,std::less<std::ba
sic_string<char,std::char_traits<char>,std::allocator<char>
> >,std::allocator<int> >' being compiled
        c:\sqlplus\sql_query1.hh(129) : see reference
to class template instantiation
'std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >
,std::allocator<int> >' being compiled
c:\program files\microsoft visual
studio\vc98\include\xtree(118) : warning C4786:
'std::_Tree<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> const ,
int>,std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >,std::allocator<int>
>::_Kfn,std::less<std::basic_string<char,std::char_traits<cha
r>,std::allocator<char> > >,std::allocator<int>
>::const_iterator' : identifier was truncated to '255'
characters in the debug information
        c:\program files\microsoft visual
studio\vc98\include\map(46) : see reference to class
template instantiation
'std::_Tree<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,std::pair<std::basic_string<char,std::char_traits<
char>,std::allocator<char> > const
,int>,std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >,std::allocator<int> >::_Kfn,std::less<std::ba
sic_string<char,std::char_traits<char>,std::allocator<char>
> >,std::allocator<int> >' being compiled
        c:\sqlplus\sql_query1.hh(129) : see reference
to class template instantiation
'std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >
,std::allocator<int> >' being compiled
c:\program files\microsoft visual
studio\vc98\include\xtree(118) : warning C4786:
'std::_Tree<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> const ,
int>,std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >,std::allocator<int>
>::_Kfn,std::less<std::basic_string<char,std::char_traits<cha
r>,std::allocator<char> > >,std::allocator<int>
>::iterator' : identifier was truncated to '255'
characters in the debug information
        c:\program files\microsoft visual
studio\vc98\include\map(46) : see reference to class
template instantiation
'std::_Tree<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,std::pair<std::basic_string<char,std::char_traits<
char>,std::allocator<char> > const
,int>,std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >,std::allocator<int> >::_Kfn,std::less<std::ba
sic_string<char,std::char_traits<char>,std::allocator<char>
> >,std::allocator<int> >' being compiled
        c:\sqlplus\sql_query1.hh(129) : see reference
to class template instantiation
'std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >
,std::allocator<int> >' being compiled
c:\program files\microsoft visual
studio\vc98\include\xtree(118) : warning C4786:
'std::_Tree<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> const ,
int>,std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >,std::allocator<int>
>::_Kfn,std::less<std::basic_string<char,std::char_traits<cha
r>,std::allocator<char> > >,std::allocator<int>
>::_Node' : identifier was truncated to '255'
characters in the debug information
        c:\program files\microsoft visual
studio\vc98\include\map(46) : see reference to class
template instantiation
'std::_Tree<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,std::pair<std::basic_string<char,std::char_traits<
char>,std::allocator<char> > const
,int>,std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >,std::allocator<int> >::_Kfn,std::less<std::ba
sic_string<char,std::char_traits<char>,std::allocator<char>
> >,std::allocator<int> >' being compiled
        c:\sqlplus\sql_query1.hh(129) : see reference
to class template instantiation
'std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >
,std::allocator<int> >' being compiled
c:\program files\microsoft visual
studio\vc98\include\xtree(118) : warning C4786:
'std::_Tree<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> const ,
int>,std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >,std::allocator<int>
>::_Kfn,std::less<std::basic_string<char,std::char_traits<cha
r>,std::allocator<char> > >,std::allocator<int>
>::const_iterator' : identifier was truncated to '255'
characters in the debug information
        c:\program files\microsoft visual
studio\vc98\include\map(46) : see reference to class
template instantiation
'std::_Tree<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,std::pair<std::basic_string<char,std::char_traits<
char>,std::allocator<char> > const
,int>,std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >,std::allocator<int> >::_Kfn,std::less<std::ba
sic_string<char,std::char_traits<char>,std::allocator<char>
> >,std::allocator<int> >' being compiled
        c:\sqlplus\sql_query1.hh(129) : see reference
to class template instantiation
'std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,int,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >
,std::allocator<int> >' being compiled
c:\sqlplus\manip1.hh(27) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(28) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(31) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(47) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(51) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(51) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(53) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(53) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(60) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(63) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(66) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(69) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(72) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(77) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\coldata1.hh(60) : error C2039:
'string_type' : is not a member of 'mysql_type_info'
        c:\sqlplus\type_info1.hh(62) : see declaration
of 'mysql_type_info'
        c:\sqlplus\manip1.hh(78) : see reference to
class template instantiation 'mysql_ColData<class
const_string>' being compiled
c:\sqlplus\coldata1.hh(63) : error C2039:
'string_type' : is not a member of 'mysql_type_info'
        c:\sqlplus\type_info1.hh(62) : see declaration
of 'mysql_type_info'
        c:\sqlplus\manip1.hh(78) : see reference to
class template instantiation 'mysql_ColData<class
const_string>' being compiled
c:\sqlplus\coldata1.hh(60) : error C2039:
'string_type' : is not a member of 'mysql_type_info'
        c:\sqlplus\type_info1.hh(62) : see declaration
of 'mysql_type_info'
        c:\sqlplus\manip1.hh(78) : see reference to
class template instantiation 'mysql_ColData<class
std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > >'
being compiled
c:\sqlplus\coldata1.hh(63) : error C2039:
'string_type' : is not a member of 'mysql_type_info'
        c:\sqlplus\type_info1.hh(62) : see declaration
of 'mysql_type_info'
        c:\sqlplus\manip1.hh(78) : see reference to
class template instantiation 'mysql_ColData<class
std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > >'
being compiled
c:\sqlplus\manip1.hh(78) : error C2678: binary '<<' :
no operator defined which takes a left-hand operand of
type 'class ostream' (or there is no acceptable
conversion)
c:\sqlplus\manip1.hh(82) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(83) : error C2678: binary '<<' :
no operator defined which takes a left-hand operand of
type 'class ostream' (or there is no acceptable
conversion)
c:\sqlplus\manip1.hh(87) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(88) : error C2678: binary '<<' :
no operator defined which takes a left-hand operand of
type 'class ostream' (or there is no acceptable
conversion)
c:\sqlplus\manip1.hh(92) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(101) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(102) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(105) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(121) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(126) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(127) : error C2678: binary '<<' :
no operator defined which takes a left-hand operand of
type 'class ostream' (or there is no acceptable
conversion)
c:\sqlplus\manip1.hh(131) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(134) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(137) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(138) : error C2678: binary '<<' :
no operator defined which takes a left-hand operand of
type 'class ostream' (or there is no acceptable
conversion)
c:\sqlplus\manip1.hh(142) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(143) : error C2678: binary '<<' :
no operator defined which takes a left-hand operand of
type 'class ostream' (or there is no acceptable
conversion)
c:\sqlplus\manip1.hh(147) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(148) : error C2678: binary '<<' :
no operator defined which takes a left-hand operand of
type 'class ostream' (or there is no acceptable
conversion)
c:\sqlplus\manip1.hh(152) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(160) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(161) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(164) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(182) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(187) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(188) : error C2678: binary '<<' :
no operator defined which takes a left-hand operand of
type 'class ostream' (or there is no acceptable
conversion)
c:\sqlplus\manip1.hh(192) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(195) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(198) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(199) : error C2678: binary '<<' :
no operator defined which takes a left-hand operand of
type 'class ostream' (or there is no acceptable
conversion)
c:\sqlplus\manip1.hh(203) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(204) : error C2678: binary '<<' :
no operator defined which takes a left-hand operand of
type 'class ostream' (or there is no acceptable
conversion)
c:\sqlplus\manip1.hh(208) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(210) : error C2678: binary '<<' :
no operator defined which takes a left-hand operand of
type 'class ostream' (or there is no acceptable
conversion)
c:\sqlplus\manip1.hh(214) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(223) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(224) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(227) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(243) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(248) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(251) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(254) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(257) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(260) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(269) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(270) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(273) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\manip1.hh(278) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\vallist1.hh(56) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\vallist1.hh(56) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\vallist1.hh(71) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\vallist1.hh(71) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\vallist1.hh(88) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\vallist1.hh(88) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\vallist1.hh(99) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\vallist1.hh(99) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\null2.hh(7) : error C2872: 'ostream' :
ambiguous symbol
c:\sqlplus\null2.hh(7) : error C2872: 'ostream' :
ambiguous symbol
C:\Documents and Settings\guymaur\Desktop\MySQL
Project\prog.cpp(40) : fatal error C1075: end of file
found before the left brace '{' at
'c:\sqlplus\set3.hh(24)' was matched
Error executing cl.exe.

prog.obj - 99 error(s), 10 warning(s)


__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to