🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.linux
Article #335

Re: help: getting headers working

#335
From: Dave Uhring
Date: Fri, 18 May 2001 23:50
44 lines
2303 bytes
David. E. Goble wrote:

> Hi All;
> 
> I hope some one can help me :< I have redhat 6.2 server installed.
> 
> I have tried to use gcc to write some programs in C. I managed to get
> a simple hello world program to compile and run. But its giving me
> problems with "external"(?) headers.
> 
> ie;
> 
> Tried to compile testlibpq.cc from the postgresql docs.
> 
> Gcc gives the following error;
> 
> testlibpq.cc:8:libpq-fe.h No such file or directory
> 
> When I change testlibpq.cc with;
> 
> #include "/usr/include/pgsql/libpq-fe.h"
> 
> Gcc produces;
> 
> testlibpq.cc:In function 'int main()':
> testlibpq.cc:98:'IT' undeclared (first use this function)
> testlibpq.cc:98:(each undeclared identifier is reported only once
> testlibpq.cc:98:for each function it apppears in.)
> testlibpq.cc:98:prase error before ';'
> testlibpq.cc:103:confused by earlier errors, bailing out
> 
> My .bash_profile has the lines
> 
> PATH=$PATH:$HOME/bin:/usr/include/:/usr/include/pqsql/
> 
> export PATH
> 
> 
> 

Are you sure you have the glibc-devel package installed?

BTW, your PATH is meaningless in this regard.  You do not include header 
directories in PATH.
Technical Details
Message-ID: <tgbdb040dvvi44@corp.supernews.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
References: <3b046583.270803@news.adelaide.on.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10c696,da17187da30e8ad7
X-Google-Attributes: gid10c696,public
X-Google-Thread: 100c5f,da17187da30e8ad7
X-Google-Attributes: gid100c5f,public
X-Google-Thread: f9b51,da17187da30e8ad7
X-Google-Attributes: gidf9b51,public
X-Google-Thread: 102983,da17187da30e8ad7
X-Google-Attributes: gid102983,public
X-Google-ArrivalTime: 2001-05-18 16:50:56 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
From: Dave Uhring <duhring@charter.net>
Newsgroups: alt.linux,aus.computers.linux,comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: help: getting headers working
Followup-To: alt.linux
Date: Fri, 18 May 2001 18:50:51 -0500
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <tgbdb040dvvi44@corp.supernews.com>
References: <3b046583.270803@news.adelaide.on.net>
User-Agent: KNode/0.4
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
X-Complaints-To: newsabuse@supernews.com
Lines: 45