From owner-freebsd-questions@FreeBSD.ORG Mon Apr 10 06:52:33 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F2BD916A4D9 for ; Mon, 10 Apr 2006 06:52:32 +0000 (UTC) (envelope-from mbsd@pacbell.net) Received: from ylpvm12.prodigy.net (ylpvm12-ext.prodigy.net [207.115.57.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0453043D4C for ; Mon, 10 Apr 2006 06:52:30 +0000 (GMT) (envelope-from mbsd@pacbell.net) Received: from pimout7-ext.prodigy.net (pimout7-int.prodigy.net [207.115.4.147]) by ylpvm12.prodigy.net (8.12.10 outbound/8.12.10) with ESMTP id k3A6qMbJ028707 for ; Mon, 10 Apr 2006 02:52:23 -0400 X-ORBL: [71.139.41.53] DomainKey-Signature: a=rsa-sha1; s=sbc01; d=pacbell.net; c=nofws; q=dns; h=date:from:x-x-sender:to:cc:subject:in-reply-to:message-id: references:mime-version:content-type; b=HZ4S/Bzm7GljEThtJUWX0j9dnBi1dqDQ121+Qpt/Md9BWYADoco+GfxEln2h1Kw66 b+rmXLXOQmRNmBV1N2Eng== Received: from [192.168.250.249] (ppp-71-139-41-53.dsl.snfc21.pacbell.net [71.139.41.53]) by pimout7-ext.prodigy.net (8.13.4 outbound domainkey aix/8.13.4) with ESMTP id k3A6qSuk161974; Mon, 10 Apr 2006 02:52:29 -0400 Date: Sun, 9 Apr 2006 23:52:27 -0700 (PDT) From: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= X-X-Sender: mikko@spirou To: Premal Mishra In-Reply-To: <2211edca0604092303w2b5649a4uc5a4e2442cb0a882@mail.gmail.com> Message-ID: <20060409234639.H34203@spirou> References: <2211edca0604092303w2b5649a4uc5a4e2442cb0a882@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: Linker Error: undefined reference to __ctype_b X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 06:52:33 -0000 On Mon, 10 Apr 2006, Premal Mishra wrote: > Hi, > > Am tryin to compile a C program which uses 3rd party library. > > I get the following error during linking: > > "undefined reference to __ctype_b" and this error comes up for many more names. > > Whats may be the problem ? > Without additional information, I'd say you are trying to link against a linux library. You are presumably running FreeBSD, so that is not likely to work. But, as that particular symbol can cause problems on linux if you have a library built against an older version of glibc, pehaps you are actually running Linux? If so, this is the wrong mailing list. $.02, /Mikko