From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14872 invoked by alias); 9 Apr 2004 02:45:20 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 14840 invoked from network); 9 Apr 2004 02:45:11 -0000 Received: from unknown (HELO mail-dark.research.att.com) (192.20.225.112) by sources.redhat.com with SMTP; 9 Apr 2004 02:45:11 -0000 Received: from mail-green.research.att.com (H-135-207-30-103.research.att.com [135.207.30.103]) by mail-dark.research.att.com (Postfix) with ESMTP id 999D2E80F4 for ; Thu, 8 Apr 2004 22:45:11 -0400 (EDT) Received: from bigmail.research.att.com (bigmail.research.att.com [135.207.30.101]) by mail-green.research.att.com (Postfix) with ESMTP id 8F168F3A90 for ; Thu, 8 Apr 2004 22:45:11 -0400 (EDT) Received: from research.att.com (rose.research.att.com [135.207.24.192]) by bigmail.research.att.com (8.11.6+Sun/8.11.6) with ESMTP id i392jAZ21733; Thu, 8 Apr 2004 22:45:10 -0400 (EDT) Message-ID: <40760D68.9090006@research.att.com> Date: Fri, 09 Apr 2004 02:45:00 -0000 From: Iker Arizmendi User-Agent: Mozilla Thunderbird 0.5b (X11/20040202) MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: static library and undefined reference Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-04/txt/msg00104.txt.bz2 Hello all. I have a project that creates several static libraries in two directories and an executable that uses them in a third. The libraries build just fine, and the executable builds fine, but fails during linking with "undefined reference" errors. I've checked the libraries with nm and can see that the symbols the linker claims are undefined are exported (nm shows marks them with a "T"). I've checked that the link line includes the libraries and that libraries that are depended on by other libraries appear first (and before the executable's .o file). I also made sure that all the files involved were compiled with g++ and not gcc. But the errors persist. What am I missing here? Any help greatly appreciated. Regards, Iker -- Iker Arizmendi AT&T Labs - Research Speech and Image Processing Lab e: iker@research.att.com w: http://research.att.com