hbrun explicit linking libz

49 views
Skip to first unread message

Tomo Vuckovic

unread,
Apr 12, 2011, 7:02:49 AM4/12/11
to Harbour Developers
error when linking hbrun :

/usr/bin/ld: ../lib/linux/gcc/libminizip.a(unzip.o): undefined
reference to symbol 'inflateInit2_'
/usr/bin/ld: note: 'inflateInit2_' is defined in DSO /lib/libz.so.1 so
try adding it to the linker command line
/lib/libz.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status

Viktor Szakáts

unread,
Apr 12, 2011, 10:29:09 AM4/12/11
to harbou...@googlegroups.com
Hi Tomo,

Which Linux distro/version is this, and what are your build settings.

Viktor

Tomo Vuckovic

unread,
Apr 12, 2011, 11:06:44 AM4/12/11
to Harbour Developers
I using Fedora 14 distro. This distro heave gcc setting with prevent
implicit linking.

Solve problem :
add "-lz" and "-lm" in hbrun.hbp

Tomo

On Apr 12, 4:29 pm, Viktor Szakáts <harbour...@syenar.hu> wrote:
> Hi Tomo,
>
Reply all
Reply to author
Forward
0 new messages