linking to libssl and libcrypt
Bryan Blackburn
0x62_0x6c_0x62 at pobox.com
Wed Oct 8 14:46:27 PDT 2008
On Wed, Oct 08, 2008 at 02:27:07PM -0700, Shawn Protsman said:
[...]
> Thanks for the quick reply. I copied the static lib to /usr/local/lib
> and then tried to compile my binary which links to liballkeyrtv.a:
>
> Building target: keyreq
> ##gcc -lallkeyrtv -o keyreq keyreq.o
> gcc -o keyreq keyreq.o /usr/local/lib/liballkeyrtv.a
> Undefined symbols:
> "_inflateEnd", referenced from:
> _zlib_stateful_free_ex_data in liballkeyrtv.a(c_zlib.o)
> _bio_zlib_free in liballkeyrtv.a(c_zlib.o)
[...]
Looks like you need to link libz as well.
Bryan
More information about the macports-users
mailing list