has anyone tried using pqxx with kdevelop? pls help...

Peggy Go shatz_go at yahoo.com
Fri Dec 26 16:25:38 GMT 2003


What I did was to install the package for pqsql. Since
I'll be using pqxx (for C++), I added the package
pqxx. I've encountered some errors when I included the
library (#include <pqxx/pqxx>) so the developer
advised me to set the following:

in CPPFLAGS text box: -I/usr/local/pqxx/include
in LDFLAGS Additional flags: 
      -L/usr/local/pqxx/lib -lpqxx

But whenever I clik on "okay", it runs configure
right? There's an error message which says 

"checking whether the C compiler works... configure:
error: cannot run C compiled programs. If you meant to
cross compile, use `--host'. See `config.log' for more
details. "

Here are some of the contents of the config.log:
--------------
configure:2410: $? = 0
configure:2412: gcc -v </dev/null >&5
Reading specs from
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--enable-shared --enable-threads=posix
--disable-checking --with-system-zlib
--enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
configure:2415: $? = 0
configure:2417: gcc -V </dev/null >&5
gcc: argument to `-V' is missing
configure:2420: $? = 1
configure:2444: checking for C compiler default output
configure:2447: gcc   -I/usr/local/pqxx/include -s
-L/usr/local/pqxx/lib -lpqxx conftest.c  >&5
configure:2450: $? = 0
configure:2496: result: a.out
configure:2501: checking whether the C compiler works
configure:2507: ./a.out
./a.out: error while loading shared libraries:
libpqxx.so.1: cannot open shared object file: No such
file or directory
configure:2510: $? = 127
configure:2519: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
--------------------------

You can see that configure:2507: ./a.out has errors
"error while loading shared libraries"

What can be the possible cause of this? Is it because
of some linking errors?

pls help!!.. Thanks :)

--- Harald Fernengel <harry at kdevelop.org> wrote:
> Hi,
> 
> On Thursday 25 December 2003 18:13, Peggy Go wrote:
> > HI! has anyone tried using pqxx database with
> > kdevelop? Because I"m enountering several errors
> that
> > I don't know how to solve. I'm really in need of
> your
> > help. Thanks!!
> 
> just post some of the errors. Qt has a native
> PostgreSQL module, no need to 
> use pqxx.
> 
> Harald
> 
> -
> to unsubscribe from this list send an email to
> kdevelop-request at kdevelop.org with the following
> body:
> unsubscribe »your-email-address«


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list