Article View: alt.linux
Article #334help: getting headers working
From: David. E. Goble
Date: Fri, 18 May 2001 00:17
Date: Fri, 18 May 2001 00:17
34 lines
2104 bytes
2104 bytes
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
Technical Details
Message-ID:
<3b046583.270803@news.adelaide.on.net>Path:
arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!news-hog.berkeley.edu!ucberkeley!enews.sgi.com!news.xtra.co.nz!news1.optus.net.au!optus!yorrell.saard.net!duster.adelaide.on.net!203.48.5.161Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c696,da17187da30e8ad7,start X-Google-Attributes: gid10c696,public X-Google-Thread: 100c5f,da17187da30e8ad7,start X-Google-Attributes: gid100c5f,public X-Google-Thread: 102983,da17187da30e8ad7,start X-Google-Attributes: gid102983,public X-Google-Thread: f9b51,da17187da30e8ad7,start X-Google-Attributes: gidf9b51,public X-Google-ArrivalTime: 2001-05-17 17:10:39 PST From: goble@gtech (David. E. Goble) Newsgroups: alt.linux,aus.computers.linux,comp.os.linux.development.apps,comp.os.linux.setup Subject: help: getting headers working Date: Fri, 18 May 2001 00:17:22 GMT Sender: goble@kin.on.net (David. E. Goble) Organization: Gtech.Computing Reply-To: goble@gtech Message-ID: <3b046583.270803@news.adelaide.on.net> X-Newsreader: Forte Free Agent 1.21/32.243 NNTP-Posting-Host: 203.48.5.161 X-Trace: 18 May 2001 09:40:38 +0950, 203.48.5.161 Lines: 36 Path: arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!news-hog.berkeley.edu!ucberkeley!enews.sgi.com!news.xtra.co.nz!news1.optus.net.au!optus!yorrell.saard.net!duster.adelaide.on.net!203.48.5.161