<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 5.50.4611.1300" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=810500913-21032001><FONT face=Arial color=#0000ff size=2>adding
-lpq++ to the linker options doesn't make any difference :(</FONT></SPAN></DIV>
<DIV><SPAN class=810500913-21032001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=810500913-21032001><FONT face=Arial color=#0000ff size=2>the
error occurs when Kdevelop checks the environment.</FONT></SPAN></DIV>
<DIV><SPAN class=810500913-21032001> <FONT face=Arial
color=#0000ff size=2>checking whether the C compiler (gcc -O1
-I/usr/include/pgsql -lpq++)works ..... no</FONT></SPAN></DIV>
<DIV><SPAN class=810500913-21032001> <FONT face=Arial
color=#0000ff size=2>C compiler cannot create executables</FONT></SPAN></DIV>
<DIV><SPAN class=810500913-21032001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=810500913-21032001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=810500913-21032001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=810500913-21032001><FONT face=Arial color=#0000ff size=2>the
lib path is in ld.so.conf :(</FONT></SPAN></DIV>
<DIV><SPAN class=810500913-21032001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=810500913-21032001><FONT face=Arial color=#0000ff size=2>I'm
stumped!?</FONT></SPAN></DIV>
<DIV><SPAN class=810500913-21032001><FONT face=Arial color=#0000ff
size=2>jake</FONT></SPAN></DIV>
<DIV><SPAN class=810500913-21032001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=810500913-21032001><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Mailing list agent
[mailto:mdom@barney.cs.uni-potsdam.de]<B>On Behalf Of </B>Pascal A.
Niklaus<BR><B>Sent:</B> Monday, 19 March 2001 4:27 PM<BR><B>To:</B>
kdevelop@kdevelop.org<BR><B>Subject:</B> Re: linking
libraries<BR><BR></FONT></DIV>Just add -lpq++ to the linker options (under
Projects->Option in KDevelop 1.4), and also include the path -L/... in the
options or alternatively include it in /etc/ld.so.conf and don't forget to run
ldconfig... That should work<BR><BR>Pascal<BR><BR><BR>At 04:45 PM 19/03/2001,
you wrote:<BR><BR>
<BLOCKQUOTE cite type="cite">I am having trouble linking external libraries
- specifically postgresql<BR>libraries.<BR><BR>I can get everything working
on the command line, but not within the<BR>Kdevelop IDE.<BR><BR>This is what
I type at the command
line<BR><BR><X-TAB> </X-TAB>g++
-I/usr/local/pgsql/include -o myapp<BR>myapp.cpp -L/usr/local/pgsql/lib
-lpq++<BR><BR>which works as desired, but in the Kdevelop IDE it throws up
comilation<BR>errors. ie can't find the libraries.<BR><BR>Any suggestions
would be great. I know it is something simple but hey
:)<BR><BR>Thanks<BR>Jake<BR></BLOCKQUOTE><BR><TT>________________________________________________________<BR><BR>Present
address: <BR><BR>Pascal Niklaus<BR>Landcare Research<BR>Private Bag 11
052<BR>Palmerston North<BR>New
Zealand
<BR><BR>Phone: +64 6 356 7154
(reception)<BR> +64 6 350 5799 3968
(direct)<BR>Fax: +64 6 355 9230<BR><BR>e-mail: <A
href="mailto:Pascal.Niklaus@unibas.ch">Pascal.Niklaus@unibas.ch</A> or <A
href="mailto:Pascal.Niklaus@gmx.ch">Pascal.Niklaus@gmx.ch</A><BR>_________________________________________________________<BR></BLOCKQUOTE></TT></BODY></HTML>