List:MySQL++« Previous MessageNext Message »
From:Totte Karlsson Date:December 23 2004 8:45pm
Subject:Update for borland builder (BCB6)
View as plain text  
Hi,
I took the latest revision and updated the borland makefiles, projectgroups.
I had to make some minor changes to the code to make it compile.

The macro NO_LONG_LONGS had to be defined.

In coldata.h the lines 96, 97, 153 and 154  was commented out
//  operator  longlong() const {return conv((longlong)0);}
//  operator  ulonglong() const {return conv((ulonglong)0);}

//operator_binary_int(longlong, longlong)
//operator_binary_int(ulonglong, ulonglong)

In custom.h line 74 was commented out
//#include "custom-macros.h"

In null.h line 18 was commented out (caused a lot of warnings)
//const null_type null = null_type();

In row.h line 255-257 was changed from
   data.insert(data.end(), d[i] ? std::string(d[i], jj[i])  :
std::string("NULL"));

to
       data.insert(data.end(), (d[i]   ? std::string(d[i], jj[i]) :
std::string("NULL")) );
i.e. missing parenthesis.

Line 4 in /example/util.h was changed from
#include <mysql++.h>
to
#include "mysql++.h"

The project files for the example "populate" were removed.

The borland project files were changed to define the NO_LONG_LONGS macro.
Added the file, /lib/mysql_CB6.lib, which is the import library for the
MySQL dll, suitable for borland. All projects links to this one.


The changes were sent to Warren Young and a copy tar file of the changes can
be found at
http://www.codeschack.com/public/

cheers,
-totte









Thread
Update for borland builder (BCB6)Totte Karlsson23 Dec
  • Re: Update for borland builder (BCB6)Warren Young28 Dec
    • Re: Update for borland builder (BCB6)Ian Quick29 Dec
      • Re: Update for borland builder (BCB6)Warren Young30 Dec
  • Re: Update for borland builder (BCB6)Totte Karlsson28 Dec
    • Re: Update for borland builder (BCB6)Chris Frey28 Dec
    • Re: Update for borland builder (BCB6)Warren Young28 Dec