logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Re: MySQL C++ API on Fedora: msg#00085

db.mysql.c++

Subject: Re: MySQL C++ API on Fedora

Hi,

I just removed the API and re-installed it. After re-installing, and without making any changes, when I tried to compile the file, here are the errors which I got:

---------------------------------------------------------------------------------------------------------

[root@localhost mysql]# g++ -I/usr/include/sqlplus -I/usr/include/mysql -lsqlplus my1.cpp -o my1
In file included from /usr/include/c++/3.3.2/backward/iostream.h:31,
from my1.cpp:1:
/usr/include/c++/3.3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
In file included from /usr/include/sqlplus/manip1.hh:14,
from /usr/include/sqlplus/vallist1.hh:6,
from /usr/include/sqlplus/row1.hh:11,
from /usr/include/sqlplus/compare1.hh:6,
from /usr/include/sqlplus/sqlplus.hh:13,
from my1.cpp:3:
/usr/include/sqlplus/sql_query1.hh:4:23: strstream.h: No such file or directory
In file included from /usr/include/sqlplus/manip1.hh:14,
from /usr/include/sqlplus/vallist1.hh:6,
from /usr/include/sqlplus/row1.hh:11,
from /usr/include/sqlplus/compare1.hh:6,
from /usr/include/sqlplus/sqlplus.hh:13,
from my1.cpp:3:
/usr/include/sqlplus/sql_query1.hh:110: error: syntax error before `{' token
/usr/include/sqlplus/sql_query1.hh:124: error: syntax error before `public'
/usr/include/sqlplus/sql_query1.hh:125: error: syntax error before `.' token
/usr/include/sqlplus/sql_query1.hh:125: error: syntax error before `.' token
/usr/include/sqlplus/sql_query1.hh:126: error: syntax error before `const'
/usr/include/sqlplus/sql_query1.hh:127: error: `SQLQuery& operator=(const
SQLQuery&)' must be a nonstatic member function
/usr/include/sqlplus/sql_query1.hh:127: error: `SQLQuery& operator=(const
SQLQuery&)' must take exactly two arguments
/usr/include/sqlplus/sql_query1.hh:133: error: non-member function `std::string
error()' cannot have `const' method qualifier
/usr/include/sqlplus/sql_query1.hh:134: error: non-member function `bool
success()' cannot have `const' method qualifier
/usr/include/sqlplus/sql_query1.hh: In function `bool success()':
/usr/include/sqlplus/sql_query1.hh:134: error: `Success' undeclared (first use
this function)

/usr/include/sqlplus/sql_query1.hh:134: error: (Each undeclared identifier is
reported only once for each function it appears in.)
/usr/include/sqlplus/sql_query1.hh: At global scope:
/usr/include/sqlplus/sql_query1.hh:136: error: `operator bool()' must be a
nonstatic member function
/usr/include/sqlplus/sql_query1.hh:136: error: `operator bool()' must take
exactly one argument
/usr/include/sqlplus/sql_query1.hh:137: error: `bool operator!()' must have an
argument of class or enumerated type
/usr/include/sqlplus/sql_query1.hh:137: error: `bool operator!()' must take
exactly one argument
/usr/include/sqlplus/sql_query1.hh: In function `SQLQuery& update(const T&,
const T&)':
/usr/include/sqlplus/sql_query1.hh:170: error: invalid use of `this' in
non-member function
/usr/include/sqlplus/sql_query1.hh:172: error: invalid use of `this' in
non-member function
/usr/include/sqlplus/sql_query1.hh: In function `SQLQuery& insert(const T&)':
/usr/include/sqlplus/sql_query1.hh:176: error: invalid use of `this' in
non-member function
/usr/include/sqlplus/sql_query1.hh:178: error: invalid use of `this' in
non-member function
/usr/include/sqlplus/sql_query1.hh: In function `SQLQuery& replace(const T&)':
/usr/include/sqlplus/sql_query1.hh:182: error: invalid use of `this' in
non-member function
/usr/include/sqlplus/sql_query1.hh:184: error: invalid use of `this' in
non-member function
/usr/include/sqlplus/sql_query1.hh: At global scope:
/usr/include/sqlplus/sql_query1.hh:187: error: non-member function `std::string
str()' cannot have `const' method qualifier
/usr/include/sqlplus/sql_query1.hh: In function `std::string str()':
/usr/include/sqlplus/sql_query1.hh:187: error: too many arguments to function `
std::string str()'
/usr/include/sqlplus/sql_query1.hh:187: error: at this point in file
/usr/include/sqlplus/sql_query1.hh: In function `std::string str(query_reset)':
/usr/include/sqlplus/sql_query1.hh:187: error: no matching function for call to
`str(SQLQueryParms&, query_reset&)'
/usr/include/sqlplus/sql_query1.hh:187: error: candidates are: std::string
str()
/usr/include/sqlplus/sql_query1.hh:187: error: std::string
str(query_reset)
/usr/include/sqlplus/sql_query1.hh: At global scope:
/usr/include/sqlplus/sql_query1.hh:187: error: non-member function `std::string
str(const char*)' cannot have `const' method qualifier
/usr/include/sqlplus/sql_query1.hh:187: error: non-member function `std::string
str(const parms&)' cannot have `const' method qualifier
/usr/include/sqlplus/sql_query1.hh:188: error: syntax error before `}' token
In file included from /usr/include/sqlplus/manip1.hh:15,
from /usr/include/sqlplus/vallist1.hh:6,
from /usr/include/sqlplus/row1.hh:11,
from /usr/include/sqlplus/compare1.hh:6,
from /usr/include/sqlplus/sqlplus.hh:13,
from my1.cpp:3:
/usr/include/sqlplus/datetime1.hh:12:23: strstream.h: No such file or directory
In file included from /usr/include/sqlplus/connection1.hh:20,
from /usr/include/sqlplus/sqlplus.hh:14,
from my1.cpp:3:
/usr/include/sqlplus/query1.hh:21: error: base class `SQLQuery' has incomplete
type
In file included from /usr/include/sqlplus/set2.hh:5,
from /usr/include/sqlplus/sqlplus.hh:49,
from my1.cpp:3:
/usr/include/sqlplus/stream2string3.hh:4:23: strstream.h: No such file or directory
In file included from /usr/include/sqlplus/set2.hh:5,
from /usr/include/sqlplus/sqlplus.hh:49,
from my1.cpp:3:
/usr/include/sqlplus/stream2string3.hh: In function `Strng stream2string(const
T&)':
/usr/include/sqlplus/stream2string3.hh:8: error: syntax error before `;' token
In file included from /usr/include/sqlplus/sqlplus.hh:50,
from my1.cpp:3:
/usr/include/sqlplus/sql_query2.hh: In member function `SQLString&
SQLQueryParms::operator[](const char*)':
/usr/include/sqlplus/sql_query2.hh:7: error: invalid use of undefined type `
class SQLQuery'
/usr/include/sqlplus/sql_query1.hh:12: error: forward declaration of `class
SQLQuery'
/usr/include/sqlplus/sql_query2.hh: In member function `const SQLString&
SQLQueryParms::operator[](const char*) const':
/usr/include/sqlplus/sql_query2.hh:11: error: invalid use of undefined type `
class SQLQuery'
/usr/include/sqlplus/sql_query1.hh:12: error: forward declaration of `class
SQLQuery'
my1.cpp: In function `int main()':
my1.cpp:17: error: no match for 'operator<<' in 'query << "select * from
sendmax"'
/usr/include/sqlplus/const_string1.hh:70: error: candidates are: std::ostream&
operator<<(std::ostream&, const const_string&)
/usr/include/sqlplus/datetime1.hh:81: error: std::ostream&
operator<<(std::ostream&, const MysqlDate&)
/usr/include/sqlplus/datetime1.hh:127: error: std::ostream&
operator<<(std::ostream&, const MysqlTime&)
/usr/include/sqlplus/datetime1.hh:147: error: std::ostream&
operator<<(std::ostream&, const MysqlDateTime&)
/usr/include/sqlplus/manip1.hh:31: error: quote_type1
operator<<(std::ostream&, quote_type0)
/usr/include/sqlplus/manip1.hh:40: error: quote_type2
operator<<(SQLQueryParms&, quote_type0)
/usr/include/sqlplus/manip1.hh:44: error: SQLQueryParms&
operator<<(quote_type2, SQLString&)
/usr/include/sqlplus/manip1.hh:47: error: std::ostream&
operator<<(quote_type1, const T&) [with T = char[22]]
/usr/include/sqlplus/manip1.hh:51: error: std::ostream&
operator<<(std::ostream&, const mysql_ColData<std::string>&)
/usr/include/sqlplus/manip1.hh:53: error: std::ostream&
operator<<(std::ostream&, const mysql_ColData<const_string>&)
/usr/include/sqlplus/manip1.hh:55: error: SQLQuery&
operator<<(SQLQuery&, const mysql_ColData<std::string>&)
/usr/include/sqlplus/manip1.hh:57: error: SQLQuery&
operator<<(SQLQuery&, const mysql_ColData<const_string>&)
/usr/include/sqlplus/manip1.hh:105: error: quote_only_type1
operator<<(std::ostream&, quote_only_type0)
/usr/include/sqlplus/manip1.hh:114: error: quote_only_type2
operator<<(SQLQueryParms&, quote_only_type0)
/usr/include/sqlplus/manip1.hh:118: error: SQLQueryParms&
operator<<(quote_only_type2, SQLString&)
/usr/include/sqlplus/manip1.hh:121: error: std::ostream&
operator<<(quote_only_type1, const T&) [with T = char[22]]
/usr/include/sqlplus/manip1.hh:165: error:
quote_double_only_type1 operator<<(std::ostream&, quote_double_only_type0)
/usr/include/sqlplus/manip1.hh:175: error:
quote_double_only_type2 operator<<(SQLQueryParms&, quote_double_only_type0)
/usr/include/sqlplus/manip1.hh:179: error: SQLQueryParms&
operator<<(quote_double_only_type2, SQLString&)
/usr/include/sqlplus/manip1.hh:182: error: std::ostream&
operator<<(quote_double_only_type1, const T&) [with T = char[22]]
/usr/include/sqlplus/manip1.hh:227: error: escape_type1
operator<<(std::ostream&, escape_type0)
/usr/include/sqlplus/manip1.hh:236: error: escape_type2
operator<<(SQLQueryParms&, escape_type0)
/usr/include/sqlplus/manip1.hh:240: error: SQLQueryParms&
operator<<(escape_type2, SQLString&)
/usr/include/sqlplus/manip1.hh:243: error: std::ostream&
operator<<(escape_type1, const T&) [with T = char[22]]
/usr/include/sqlplus/manip1.hh:273: error: do_nothing_type1
operator<<(std::ostream&, do_nothing_type0)
/usr/include/sqlplus/manip1.hh:278: error: std::ostream&
operator<<(do_nothing_type1, const T&) [with T = char[22]]
/usr/include/sqlplus/manip1.hh:287: error: do_nothing_type2
operator<<(SQLQueryParms&, do_nothing_type0)
/usr/include/sqlplus/manip1.hh:291: error: SQLQueryParms&
operator<<(do_nothing_type2, SQLString&)
/usr/include/sqlplus/manip1.hh:303: error: ignore_type2
operator<<(SQLQueryParms&, ignore_type0)
/usr/include/sqlplus/manip1.hh:307: error: SQLQueryParms&
operator<<(ignore_type2, SQLString&)
/usr/include/sqlplus/stream2string3.hh: In function `Strng stream2string(const
T&) [with Strng = std::string, T = mysql_dt_base]':
/usr/include/sqlplus/datetime2.hh:9: instantiated from here
/usr/include/sqlplus/stream2string3.hh:9: error: no matching function for call
to `mysql_dt_base::out_stream(<unknown type>) const'
/usr/include/sqlplus/datetime1.hh:21: error: candidates are: virtual
std::ostream& mysql_dt_base::out_stream(std::ostream&) const
/usr/include/sqlplus/stream2string3.hh:10: error: invalid operands of types `
<unknown type>' and `<unknown type>' to binary `operator<<'
/usr/include/sqlplus/stream2string3.hh:11: error: request for member `str' in `
str', which is of non-aggregate type `<unknown type>'
/usr/include/sqlplus/stream2string3.hh:16: error: request for member `freeze'
in `str', which is of non-aggregate type `<unknown type>'
[root@localhost mysql]#


---------------------------------------------------------------------------------------------------------

Regards,
Vishal Kothari.

_________________________________________________________________
Marriage? Join BharatMatrimony.com for free. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsub=gcdmc-plusplus@xxxxxxxxxxx







Only community members can participate in forum threads. You must Register or log in to contribute.

<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo