Hi Martijn,
On 06.07.2012 00:50, Martijn van Exel wrote:
Thanks for that. My output is
zlib header version 1.2.7
zlib runtime version 1.2.3.3
so a bit of both.
And exactly _that_ is why you're getting link errors. You see, you
compile against 1.2.7 (ZLIB_VERSION is #defined in zlib.h) but then you
try to link against 1.2.3.3 (zlibVersion() is an actual function in the
library). 1.2.3.3 doesn't have gzbuffer and the linker can't resolve the
symbol and fails.
So you need to force gcc (or, more precisely, ld) to look for the
library in /usr/local/lib or wherever your 1.2.7 zlib is.
Try to compile the test program with
gcc zversion.c -o zversion -L/usr/local/lib -lz
and look if your output matches. If it does, compiling osmconvert with
-L/usr/local/lib should work too.
Bye
Igor
_______________________________________________
osmosis-dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/osmosis-dev