hi thank you for this.

so in order to build https://github.com/kuno/GeoIP into freebsd, as i
get this issue: https://github.com/kuno/GeoIP/issues/33

i am really not sure why that is not working.



On Mon, Mar 5, 2012 at 6:51 PM, Mel Flynn <[email protected]> wrote:
> On 3/5/2012 18:37, Norman Khine wrote:
>
>> $ gcc -lGeoIP example.c
>> example.c:1:19: error: GeoIP.h: No such file or directory
>
>> what am i missing?
>
> Basic compiling flags when working with software that does not install
> into default search paths:
> cc -I/usr/local/include -L/usr/local/lib -o example example.c -lGeoIP
>   [ CFLAGS/CPPFLAGS  ] [ LDFLAGS      ]    [ PROG] [ SRCS  ] [LDADD]
>
> The brackets above refer to variable names in /usr/share/mk/bsd.prog.mk
> which can be used by make(1) on stock FreeBSD. Example Makefile:
>
> PROG=example
> SRCS=example.c # optional, if not specified will assume ${PROG}.c
> CPPFLAGS=-I/usr/local/include
> LDFLAGS=-L/usr/local/lib
> LDADD=-lGeoIP
>
> .include <bsd.prog.mk>
> --
> Mel
> _______________________________________________
> [email protected] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "[email protected]"



-- 
%>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or
chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] )
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"

Reply via email to