[sclug] C++ Linking to libpg++ problem

lug at assursys.co.uk lug at assursys.co.uk
Sat Oct 25 09:05:49 UTC 2003


On Mon, 21 Jul 2003, Tim Sutton wrote:

> Thanks for the tips :-) After much fiddling about I resolved the problem by 
> adding:
> 
> Project -> Options -> Compiler Options -> Configure Tab -> Additional Options 
> - -> --with-extra-includes=/usr/include/pgsql
> 
> Most of the problem was just figuring out how kdevelop expected me to add the 
> - --with-extra-includes option.
> 
> One last thing I am wondering - how would I go about adding more than one 
> include path in the above example?

I don't believe you can. That's why my first suggestion was to use

	#include <pgsql/foo.h>

rather than

	#include <foo.h>

and expect the compiler to search /usr/include/pgsql for foo.h.

> Cheers
> Tim

Best Regards,
Alex.
-- 
Alex Butcher      Brainbench MVP for Internet Security: www.brainbench.com
Bristol, UK                      Need reliable and secure network systems?
PGP/GnuPG ID:0x271fd950                         <http://www.assursys.com/>



More information about the Sclug mailing list