From owner-freebsd-ports@FreeBSD.ORG Mon Mar 5 18:46:03 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 999731065678 for ; Mon, 5 Mar 2012 18:46:03 +0000 (UTC) (envelope-from ade@FreeBSD.org) Received: from panix.lovett.com (panix.lovett.com [166.84.7.128]) by mx1.freebsd.org (Postfix) with ESMTP id 703468FC18 for ; Mon, 5 Mar 2012 18:46:03 +0000 (UTC) Received: from nat-dip6.cfw-a-gci.corp.yahoo.com ([209.131.62.115] helo=[10.73.208.227]) by panix.lovett.com with esmtpa (Exim 4.77 (FreeBSD)) (envelope-from ) id 1S4cuy-000NkP-W9; Mon, 05 Mar 2012 18:45:57 +0000 Message-ID: <4F5509E4.4040808@FreeBSD.org> Date: Mon, 05 Mar 2012 10:45:56 -0800 From: Ade Lovett User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Norman Khine References: <4F54FD0B.9070401@acsalaska.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: installing GeoIP X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2012 18:46:03 -0000 On 3/5/2012 10:32, Norman Khine wrote: > when i run > > $ /usr/bin/ld -lGeoIP > /usr/bin/ld: cannot find -lGeoIP > > perhaps i have a problem with the settings of my location of the > headers in my linker path. > > how do i verify this? As has already been explained. -I/usr/local/include (to find the header(s)) and -L/usr/local/lib (to find the library) cc -I/usr/local/include -o example example.c -L/usr/local/lib -lGeoIP This is "Compilation of Stuff 101" -- it most likely isn't an issue on Linux, since there's a tendency to just stuff everything in /usr/include, /usr/lib and friends which will be poked at by the compiler by default. -aDe