Simon Elbaz wrote:
> Hi all,
> I am using libpqxx since version 2.5. I have just downloaded 2.6.6 
> version and tried to compile it.
> It produces the following error:
> make[1]: Entering directory `/home/simon/software/libpqxx-2.6.6/src'
> if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H  
> -I../include -I../include -I/usr/local/pgsql/include    -g -O2 -Werror 
> -MT connection_base.lo -MD -MP -MF ".deps/connection_base.Tpo" -c -o 
> connection_base.lo connection_base.cxx; \
> then mv -f ".deps/connection_base.Tpo" ".deps/connection_base.Plo"; else 
> rm -f ".deps/connection_base.Tpo"; exit 1; fi
>  g++ -DHAVE_CONFIG_H -I../include -I../include 
> -I/usr/local/pgsql/include -g -O2 -Werror -MT connection_base.lo -MD -MP 
> -MF .deps/connection_base.Tpo -c connection_base.cxx  -fPIC -DPIC -o 
> .libs/connection_base.o
> connection_base.cxx: In member function 'pqxx::result 
> pqxx::connection_base::prepared_exec(const std::string&, const char* 
> const*, int)':
> connection_base.cxx:837: error: 'a' was not declared in this scope
> connection_base.cxx:853: error: 'a' was not declared in this scope
> make[1]: *** [connection_base.lo] Error 1
> make[1]: Leaving directory `/home/simon/software/libpqxx-2.6.6/src'
> make: *** [all-recursive] Error 1
> 
> I have added int at line 837 and changed:
> s.parameters[a] to s.parameters[n].
> 
> Is it right ?

Yes, that's totally correct. The current state of SVN already has those 
fixes, they just haven't been released yet. Jeroen, I know you're 
terribly busy, but would there be any chance that you could get that 
release out there some time soon? It would probably be a good idea to 
move the "stable" label from 2.6.6 to 2.6.7 as well then. :-)

Cheers,
Bart
_______________________________________________
Libpqxx-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general

Reply via email to