Article View: alt.linux
Article #339help: Undefined reference to '...'
From: David. E. Goble
Date: Thu, 24 May 2001 07:52
Date: Thu, 24 May 2001 07:52
23 lines
1619 bytes
1619 bytes
Hi All; I have redHat 6.2 (server install) I am trying to do some programming. Tried these two; gcc testlibpq.c -I/usr/include/pgsql/ -L/usr/lib/ and gcc cube.cpp -I/usr/X11R6/include/ -L/usr/X11R6/lib/ both produce a list of; .... Undefined reference to '...' collect2: ld returned 1 exit status I understand this has something to do with linking... What am I doing wrong or not doing. Please I need step by step instruction, thanks.
Technical Details
Message-ID:
<3b0bacc3.134395@news.adelaide.on.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeed.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.212Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c696,e7efa684ec24a406,start X-Google-Attributes: gid10c696,public X-Google-Thread: 102983,e7efa684ec24a406,start X-Google-Attributes: gid102983,public X-Google-Thread: 100c5f,e7efa684ec24a406,start X-Google-Attributes: gid100c5f,public X-Google-Thread: f9b51,e7efa684ec24a406,start X-Google-Attributes: gidf9b51,public X-Google-ArrivalTime: 2001-05-24 00:45:23 PST From: goble@gtech (David. E. Goble) Newsgroups: alt.linux,aus.computers.linux,comp.os.linux.development.apps,comp.os.linux.setup Subject: help: Undefined reference to '...' Date: Thu, 24 May 2001 07:52:32 GMT Sender: goble@kin.on.net (David. E. Goble) Organization: Gtech.Computing Reply-To: goble@gtech Message-ID: <3b0bacc3.134395@news.adelaide.on.net> X-Newsreader: Forte Free Agent 1.21/32.243 NNTP-Posting-Host: 203.48.5.212 X-Trace: 24 May 2001 17:15:21 +0950, 203.48.5.212 Lines: 23 Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeed.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.212