pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michiel Lange <michiel@minas.demon.nl>
To: pgsql-interfaces@postgresql.org
Subject: Re: Problems compiling with libpq
Date: Tue, 21 Jan 2003 01:47:22 +0100
Message-ID: <5.1.0.14.0.20030121014550.00b7dea0@192.168.1.3> (raw)
In-Reply-To: <5.1.0.14.0.20030121011119.00b32d78@192.168.1.3>

Never mind,

it's the -I parameter, and it's not -lpgsql but -lpq :)
However, I wonder if it is possible not to have to set the flag... so as to 
add the dir to the default headerfile-searchpath...

Michiel out

At 01:18 21-1-2003 +0100, Michiel Lange wrote:
>I know I am being silly, but it is late and I cannot recall what the 
>solution was...
>
>When I write a C program with
>#include <libpq-fe.h>
>or
>#include "libpq-fe.h"
>
>and compile with -llibpq turned on, I get the message that the system 
>cannot find libpq-fe.h
>I know it is me being really silly, for the headerfile is where I expected 
>it: /usr/local/pgsql/include/libpg-fe.h
>The solution should be to tell gcc where to find this file... even better 
>would be: to include the dir to the include-files path... but there it 
>stops for me, anyone who can help me out?
>
>Gcc 2.95.3, Slackware 8.1, PostgeSQL 7.3 ordinary users as well as root 
>should be able to compile it. (some little voice in my head told me that 
>it might differ for root)
>
>tia,
>Michiel
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 3: if posting/reading through Usenet, please send an appropriate
>subscribe-nomail command to majordomo@postgresql.org so that your
>message can get through to the mailing list cleanly





view thread (2+ messages)

Message-ID: <5.1.0.14.0.20030121014550.00b7dea0@192.168.1.3>
Permalink:  ../5.1.0.14.0.20030121014550.00b7dea0@192.168.1.3/
Also on:    postgresql.org/message-id/5.1.0.14.0.20030121014550.00b7dea0@192.168.1.3

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: michiel@minas.demon.nl
  Subject: Re: Problems compiling with libpq
  In-Reply-To: <5.1.0.14.0.20030121014550.00b7dea0@192.168.1.3>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox