[prev in list] [next in list] [prev in thread] [next in thread]
List: mysql-plusplus
Subject: Re: Compiling in gcc3.0
From: Vadim Berezniker <vadim () berezniker ! com>
Date: 2001-07-06 20:57:17
[Download RAW message or body]
Woops. Either
a) I forgot to actually include the attachment or b) Mozilla ate it
I'll try again.
Rune Kleveland wrote:
> Vadim Berezniker <vadim@berezniker.com> writes:
>
>
>>(I've looked through the subjects of the last 100 e-mails and did not
>>see any similiar e-mails)
>>
>>A couple of days ago, I installed gcc3.0.
>>When I tried to compile the mysql++ library, I got a number of errors.
>>
>>I modified some of the files to mysql++ compilable on my machine.
>>
>>I'm including the diff if anybody else has problems compiling under 3.0
>>
>
> Thank you for doing this!
>
> I can't see any diff file in your message. I would very much like to
> have it. Could you please post it to me directly or to the list?
>
>
--
AIM: Kryptolus
BrainLINK Web Development Team [http://www.brainlink.com]
607 Site Design Web Development Team [http://www.607design.com]
["sqlplusplus-gcc3.0.diff" (text/plain)]
Common subdirectories: mysql++-1.7.9/sqlplusint/.deps and mysql++-1.7.9-mine/sqlplusint/.deps
Only in mysql++-1.7.9-mine/sqlplusint/: Makefile
diff -u mysql++-1.7.9/sqlplusint/connection1.hh mysql++-1.7.9-mine/sqlplusint/connection1.hh
--- mysql++-1.7.9/sqlplusint/connection1.hh Sat May 19 12:44:49 2001
+++ mysql++-1.7.9-mine/sqlplusint/connection1.hh Fri Jun 29 20:34:26 2001
@@ -22,9 +22,9 @@
//: The main database handle
class Connection {
- friend ResNSel;
- friend ResUse;
- friend Query;
+ friend class ResNSel;
+ friend class ResUse;
+ friend class Query;
private:
bool throw_exceptions;
diff -u mysql++-1.7.9/sqlplusint/const_string1.hh mysql++-1.7.9-mine/sqlplusint/const_string1.hh
--- mysql++-1.7.9/sqlplusint/const_string1.hh Sat May 19 12:44:48 2001
+++ mysql++-1.7.9-mine/sqlplusint/const_string1.hh Fri Jun 29 20:57:48 2001
@@ -1,9 +1,10 @@
#ifndef __const_string1_hh__
#define __const_string1_hh__
-
#include <stdexcept>
#include <string>
#include <iostream>
+
+using namespace std;
//: A special string that is created from a existing const char *
// It contains a small subset of the standard string class. When an
diff -u mysql++-1.7.9/sqlplusint/exceptions.hh mysql++-1.7.9-mine/sqlplusint/exceptions.hh
--- mysql++-1.7.9/sqlplusint/exceptions.hh Sat May 19 12:44:49 2001
+++ mysql++-1.7.9-mine/sqlplusint/exceptions.hh Fri Jun 29 20:28:27 2001
@@ -1,6 +1,8 @@
/* sqlplusint/exceptions.hh. Generated automatically by configure. */
#ifndef __MYSQLPLUS_EXCEPTIONS__
#define __MYSQLPLUS_EXCEPTIONS__
+
+using namespace std;
#include <string>
/* #undef USE_STANDARD_EXCEPTION */
diff -u mysql++-1.7.9/sqlplusint/manip.cc mysql++-1.7.9-mine/sqlplusint/manip.cc
--- mysql++-1.7.9/sqlplusint/manip.cc Sat May 19 12:44:48 2001
+++ mysql++-1.7.9-mine/sqlplusint/manip.cc Fri Jun 29 20:44:06 2001
@@ -1,6 +1,8 @@
#include "manip3.hh"
+using namespace std;
+
// quote manipulator
bool dont_quote_auto=false;
@@ -111,7 +113,7 @@
return o;
}
-SQLQuery& operator << (SQLQuery& o, const mysql_ColData<string>& in) {
+/*SQLQuery& operator << (SQLQuery& o, const mysql_ColData<string>& in) {
if (dont_quote_auto) {o << in.get_string(); return o;}
if (in.escape_q()) {
char *s = new char[in.size()*2+1];
@@ -127,10 +129,10 @@
o << in.get_string();
}
return o;
-}
+}*/
-SQLQuery& operator << (SQLQuery& o, const mysql_ColData<const_string>& in) {
+/*SQLQuery& operator << (SQLQuery& o, const mysql_ColData<const_string>& in) {
if (dont_quote_auto) {o << in.get_string(); return o;}
if (in.escape_q()) {
char *s = new char[in.size()*2+1];
@@ -146,7 +148,7 @@
o << in.get_string();
}
return o;
-}
+} */
// quote only manipulator
diff -u mysql++-1.7.9/sqlplusint/result1.hh mysql++-1.7.9-mine/sqlplusint/result1.hh
--- mysql++-1.7.9/sqlplusint/result1.hh Sat May 19 12:44:48 2001
+++ mysql++-1.7.9-mine/sqlplusint/result1.hh Fri Jun 29 20:33:57 2001
@@ -20,7 +20,7 @@
#include "exceptions.hh"
//:
class ResUse {
- friend Connection;
+ friend class Connection;
protected:
Connection *mysql;
mutable MYSQL_RES *mysql_res;
@@ -151,7 +151,7 @@
class Result : public ResUse,
public const_subscript_container<Result,Row,const Row>
{
- friend Connection;
+ friend class Connection;
public:
Result () {} //:
Result (MYSQL_RES *result, bool te = false)
diff -u mysql++-1.7.9/sqlplusint/sql_query1.hh mysql++-1.7.9-mine/sqlplusint/sql_query1.hh
--- mysql++-1.7.9/sqlplusint/sql_query1.hh Sat May 19 12:44:48 2001
+++ mysql++-1.7.9-mine/sqlplusint/sql_query1.hh Fri Jun 29 20:33:29 2001
@@ -17,7 +17,7 @@
//: This class holds the parameter values for filling template queries.
// It is a subclass of a vector of *SQLStrings*.
class SQLQueryParms : public vector<SQLString> {
- friend Query;
+ friend class Query;
private:
typedef const SQLString& ss;
SQLQuery *parent;
@@ -108,7 +108,7 @@
// methods except for *error()* and *success()*.
class SQLQuery : public strstream {
- friend SQLQueryParms;
+ friend class SQLQueryParms;
private:
char* preview_char();
protected:
diff -u mysql++-1.7.9/sqlplusint/sql_string1.hh mysql++-1.7.9-mine/sqlplusint/sql_string1.hh
--- mysql++-1.7.9/sqlplusint/sql_string1.hh Sat May 19 12:44:48 2001
+++ mysql++-1.7.9-mine/sqlplusint/sql_string1.hh Fri Jun 29 20:37:10 2001
@@ -6,6 +6,8 @@
#include "defs"
#include "define_short"
+using namespace std;
+
//: A special string that will convert from anything.
// A class subclassed from string that has the additional ability to
// convert from any valid mysql type.
diff -u mysql++-1.7.9/sqlplusint/string_util.cc mysql++-1.7.9-mine/sqlplusint/string_util.cc
--- mysql++-1.7.9/sqlplusint/string_util.cc Sat May 19 12:44:49 2001
+++ mysql++-1.7.9-mine/sqlplusint/string_util.cc Fri Jun 29 20:50:56 2001
@@ -1,5 +1,6 @@
#include <string>
+using namespace std;
void strip (string& s) {
int i,j = s.size() - 1; if (!s.size()) return;
diff -u mysql++-1.7.9/sqlplusint/type_info1.hh mysql++-1.7.9-mine/sqlplusint/type_info1.hh
--- mysql++-1.7.9/sqlplusint/type_info1.hh Sat May 19 12:44:48 2001
+++ mysql++-1.7.9-mine/sqlplusint/type_info1.hh Fri Jun 29 20:35:51 2001
@@ -11,16 +11,16 @@
#include <typeinfo>
#include <map>
-#ifdef __USLC__
+//#ifdef __USLC__
using namespace std;
-#endif
+//#endif
class mysql_type_info;
class mysql_ti_sql_type_info_lookup;
class mysql_ti_sql_type_info {
- friend mysql_type_info;
- friend mysql_ti_sql_type_info_lookup;
+ friend class mysql_type_info;
+ friend class mysql_ti_sql_type_info_lookup;
private:
const char *_sql_name;
const type_info *_c_type;
@@ -45,7 +45,7 @@
};
class mysql_ti_sql_type_info_lookup {
- friend mysql_type_info;
+ friend class mysql_type_info;
private:
typedef mysql_ti_sql_type_info sql_type_info;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic