From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12900 invoked by alias); 2 Jun 2012 19:19:50 -0000 Received: (qmail 12892 invoked by uid 22791); 2 Jun 2012 19:19:50 -0000 X-SWARE-Spam-Status: No, hits=-7.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail1-relais-roc.national.inria.fr (HELO mail1-relais-roc.national.inria.fr) (192.134.164.82) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 02 Jun 2012 19:19:37 +0000 Received: from ip-254.net-81-220-143.rev.numericable.fr (HELO laptop-mg.local) ([81.220.143.254]) by mail1-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 02 Jun 2012 21:19:35 +0200 Date: Sat, 02 Jun 2012 19:19:00 -0000 From: Marc Glisse Reply-To: gcc-help@gcc.gnu.org To: geezers cc: gcc-help@gcc.gnu.org Subject: Re: missing libraries under Kubuntu 12.04, 64 bit In-Reply-To: <33950674.post@talk.nabble.com> Message-ID: References: <33950674.post@talk.nabble.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2012-06/txt/msg00022.txt.bz2 On Sat, 2 Jun 2012, geezers wrote: > Using the same make file that worked for years, but getting linker errors > for unresolved externals. The compilation gives me warnings about needing a > format string for fprintf, but that is because the format string used has no > '%' specifiers (I assume that is the reason it doesn't like the format > string) and about ignoring function return values. I was going to fix those > but decided to leave as is. Other than the warning messages, the compilation > gives no errors. If you want advice on those, you should show the exact message and the code... > The relevant make file line is: > > $(CC) -o $@ -ldl -rdynamic $(OBJS) If A depends on B, put A before B on the line (A is $(OBJS) and B is -ldl). > I created links in /lib as: Never do that! -- Marc Glisse