linking libraries

Pascal A. Niklaus Pascal.Niklaus at unibas.ch
Mon Mar 19 05:56:49 GMT 2001


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: <mailto:Pascal.Niklaus at unibas.ch>Pascal.Niklaus at unibas.ch or 
<mailto:Pascal.Niklaus at gmx.ch>Pascal.Niklaus at gmx.ch
_________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20010319/8c291fcb/attachment.html>


More information about the KDevelop mailing list