From owner-freebsd-questions@FreeBSD.ORG Mon Apr 10 06:58:31 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 9371B16A400 for ; Mon, 10 Apr 2006 06:58:31 +0000 (UTC) (envelope-from premal.mishra@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06A8143D45 for ; Mon, 10 Apr 2006 06:58:27 +0000 (GMT) (envelope-from premal.mishra@gmail.com) Received: by nproxy.gmail.com with SMTP id m18so614786nfc for ; Sun, 09 Apr 2006 23:58:26 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Rk3o+cBkPmXPU/ooJJpBNWkm+CEcNSgC11PyM5G9WVbkYbFKsSSwKvvLZBpRNcI0zmWyKQiqDdTTZ2Nyd5KHdqzTSQ+36ShfMIIjIX6hPifpY2HgSYb5CiYj2rIUJWoTSTldE+SSDUnWA6BmnbUQ5nupOypuk45g6GHQpPlA2Vw= Received: by 10.49.31.8 with SMTP id i8mr3455749nfj; Sun, 09 Apr 2006 23:58:26 -0700 (PDT) Received: by 10.49.31.1 with HTTP; Sun, 9 Apr 2006 23:58:26 -0700 (PDT) Message-ID: <2211edca0604092358i5325b60ap3a593f1e3ff62d6@mail.gmail.com> Date: Mon, 10 Apr 2006 12:28:26 +0530 From: "Premal Mishra" To: "=?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?=" In-Reply-To: <20060409234639.H34203@spirou> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <2211edca0604092303w2b5649a4uc5a4e2442cb0a882@mail.gmail.com> <20060409234639.H34203@spirou> 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:58:31 -0000 Hi, Ya, am trying to link against a linux library on FreeBSD. Is it not possible to use it? Regards Premal. On 4/10/06, Mikko Ty=F6l=E4j=E4rvi wrote: > 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 mor= e 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 >