🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.linux
Article #342

Re: help: Undefined reference to '...'

#342
From: Adam Fineman
Date: Thu, 24 May 2001 18:57
34 lines
2021 bytes
"David. E. Goble" wrote:
> 
> 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...
> 
That seems likely.

> What am I doing wrong or not doing. Please I need step by step
> instruction, thanks.
You haven't given us enough information to help you.  Post the
*smallest* possible compilable program that displays the error, along
with the command you issued to compile it and the output from the
compilere.

--
Adam
Technical Details
Message-ID: <3B0D5987.A12C029A@timesys.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
References: <3b0bacc3.134395@news.adelaide.on.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10c696,e7efa684ec24a406
X-Google-Attributes: gid10c696,public
X-Google-Thread: 100c5f,e7efa684ec24a406
X-Google-Attributes: gid100c5f,public
X-Google-Thread: 102983,e7efa684ec24a406
X-Google-Attributes: gid102983,public
X-Google-Thread: f9b51,e7efa684ec24a406
X-Google-Attributes: gidf9b51,public
X-Google-ArrivalTime: 2001-05-24 11:50:47 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
From: Adam Fineman <afineman@timesys.com>
Newsgroups: alt.linux,aus.computers.linux,comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: help: Undefined reference to '...'
Date: Thu, 24 May 2001 14:57:11 -0400
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <3B0D5987.A12C029A@timesys.com>
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
References: <3b0bacc3.134395@news.adelaide.on.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Complaints-To: newsabuse@supernews.com
Lines: 34