[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop
Subject:    RE: linking libraries
From:       "Jake Skinner" <jskinn () gribbles ! com ! au>
Date:       2001-03-21 21:40:55
[Download RAW message or body]

adding -lpq++ to the linker options doesn't make any difference :(

the error occurs when Kdevelop checks the environment.
    checking whether the C compiler
(gcc -O1 -I/usr/include/pgsql -lpq++)works ..... no
    C compiler cannot create executables



the lib path is in ld.so.conf :(

I'm stumped!?
jake


  -----Original Message-----
  From: Mailing list agent [mailto:mdom@barney.cs.uni-potsdam.de]On Behalf
Of Pascal A. Niklaus
  Sent: Monday, 19 March 2001 4:27 PM
  To: kdevelop@kdevelop.org
  Subject: Re: linking libraries


  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

  Pascal


  At 04:45 PM 19/03/2001, you wrote:


    I am having trouble linking external libraries - specifically postgresql
    libraries.

    I can get everything working on the command line, but not within the
    Kdevelop IDE.

    This is what I type at the command line

            g++ -I/usr/local/pgsql/include -o myapp
    myapp.cpp -L/usr/local/pgsql/lib -lpq++

    which works as desired, but in the Kdevelop IDE it throws up comilation
    errors. ie can't find the libraries.

    Any suggestions would be great. I know it is something simple but hey :)

    Thanks
    Jake


  ________________________________________________________

  Present address:

  Pascal Niklaus
  Landcare Research
  Private Bag 11 052
  Palmerston North
  New Zealand

  Phone: +64 6 356 7154 (reception)
         +64 6 350 5799 3968 (direct)
  Fax:   +64 6 355 9230

  e-mail: Pascal.Niklaus@unibas.ch or Pascal.Niklaus@gmx.ch
  _________________________________________________________


[Attachment #3 (text/html)]

<!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>&nbsp;</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>&nbsp;&nbsp;&nbsp; <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>&nbsp;&nbsp;&nbsp; <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>&nbsp;</DIV>
<DIV><SPAN class=810500913-21032001><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=810500913-21032001><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV><SPAN class=810500913-21032001><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</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-&gt;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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  <BR><BR>Phone: +64 6 356 7154 
  (reception)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +64 6 350 5799 3968 
  (direct)<BR>Fax:&nbsp;&nbsp; +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>



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic