List:MySQL++« Previous MessageNext Message »
From:Chris Frey Date:September 19 2005 1:52am
Subject:Re: [OBORONA-SPAM] Re: [patch] row::operator[] - template version
View as plain text  
On Sun, Sep 18, 2005 at 08:19:13PM -0400, pps wrote:
> Chris Frey wrote:
> >The development site is: https://gna.org/projects/mysqlpp/
> >You can grab the latest makemake.bat file here:
> >	http://svn.gna.org/viewcvs/mysqlpp/trunk/
> >
> 
> 
> Ok, I build it on winXp - even when I downloaded the latest svn, I had 
> problems bulding it... There seem to be to many dirrectories that are 
> hardcoded into makefiles: had to edit files manually, add mysql/include 
> and lib/opt to enviroment variables; had to manually create config.h etc...

I'm not a guru for the Windows side of things.  Warren wrote the windows
build scripts and will be able to help you there.


> I tried to build it on unix and it doesn't work!!!
> 1) README.unix says that I can say ./configure --help, but there's no 
> configure script (only configure.in). I tried to run makemake.sh, but I 
> don't have bash, then even when I installed it it wasn't in /usr/bash. 
> After when I replaced /usr/bash with something suitable for me it gave 
> out some warnings (line 32: [: ==: unary operator expected) and when it 
> started to run make it used incorrect include path for mysql:
> g++ -I/usr/include/mysql -I.. -O2 -c coldata.cpp
> In file included from const_string.h:32,
>                  from coldata.h:37,
>                  from coldata.cpp:27:
> defs.h:34: mysql.h
> 
> mine is located in /usr/local/include/mysql, plus g++ is v2.95. For 
> things that need something newer I use g++32, 33, 34 :) For that usually 
> $CXX=g++34 works

For unix, if you're building from svn, you'll need to run all the autoconf
tools.  There is a 'bootstrap' script to make that easy.  So far I haven't
had any trouble with the autoconf side of things.

To specify a different compiler, I use a command line like this (assuming
I've built gcc-4.0.1 and installed it in /home/source5/rootdir-gcc401):

	./configure --prefix=/usr/local \
		CC=/home/source5/rootdir-gcc401/bin/gcc \
		CPP=/home/source5/rootdir-gcc401/bin/cpp \
		CXX=/home/source5/rootdir-gcc401/bin/g++ \
		CXXCPP=/home/source5/rootdir-gcc401/bin/cpp

I can use a compiler built in any old home directory using this.  To run the
results using a new compiler like gcc-4.0.1 when my system compiler is
gcc-3.3.6, I have to do:

	export LD_LIBRARY_PATH=/home/source5/rootdir-gcc401/lib

Hope that helps,
- Chris

Thread
[patch] row::operator[] - template versionChris Frey18 Sep
  • Re: [patch] row::operator[] - template versionWarren Young19 Sep
    • Re: [patch] row::operator[] - template versionWarren Young19 Sep
      • Re: [patch] row::operator[] - template versionChris Frey19 Sep
        • Re: [patch] row::operator[] - template versionWarren Young19 Sep
          • Re: [patch] row::operator[] - template versionChris Frey19 Sep
Re: [patch] row::operator[] - template versionChris Frey18 Sep
  • Re: [patch] row::operator[] - template versionUnknown Sender18 Sep
    • Re: [patch] row::operator[] - template versionChris Frey18 Sep
      • Re: [patch] row::operator[] - template versionUnknown Sender18 Sep
        • Re: [patch] row::operator[] - template versionWarren Young19 Sep
          • Re: [patch] row::operator[] - template versionUnknown Sender19 Sep
            • Re: [patch] row::operator[] - template versionWarren Young19 Sep
      • Re: [OBORONA-SPAM] Re: [patch] row::operator[] - template versionUnknown Sender19 Sep
        • Re: [OBORONA-SPAM] Re: [patch] row::operator[] - template versionChris Frey19 Sep
          • Re: [patch] row::operator[] - template versionUnknown Sender19 Sep
            • Re: [patch] row::operator[] - template versionChris Frey19 Sep
            • Re: [patch] row::operator[] - template versionWarren Young19 Sep
        • Re: [patch] row::operator[] - template versionWarren Young19 Sep
    • Re: [patch] row::operator[] - template versionChris Frey18 Sep
  • Re: [patch] row::operator[] - template versionWarren Young19 Sep