Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Linker problems with Vfs/ZipFolder

Moderators: kris

Posted: 04/06/09 11:10:15

I'm using Vfs for loading zip files and I'm getting a bunch of undefined references. Any idea what's wrong?

dsss_objs/D/tango.io.compress.ZlibStream.o: In function `_D5tango2io8compress10ZlibStream9ZlibInput4readMFAvZk':
/home/oaalto/D/tango/bin/../import/tango/io/compress/ZlibStream.d:(.text._D5tango2io8compress10ZlibStream9ZlibInput4readMFAvZk+0x75): undefined reference to `inflate'
dsss_objs/D/tango.io.compress.ZlibStream.o: In function `_D5tango2io8compress10ZlibStream9ZlibInput7kill_zsMFZv':
/home/oaalto/D/tango/bin/../import/tango/io/compress/ZlibStream.d:(.text._D5tango2io8compress10ZlibStream9ZlibInput7kill_zsMFZv+0x16): undefined reference to `inflateEnd'
dsss_objs/D/tango.io.compress.ZlibStream.o: In function `_D5tango2io8compress10ZlibStream10ZlibOutput5writeMFAvZk':
/home/oaalto/D/tango/bin/../import/tango/io/compress/ZlibStream.d:(.text._D5tango2io8compress10ZlibStream10ZlibOutput5writeMFAvZk+0x3e): undefined reference to `deflate'
dsss_objs/D/tango.io.compress.ZlibStream.o: In function `_D5tango2io8compress10ZlibStream10ZlibOutput6commitMFZv':
/home/oaalto/D/tango/bin/../import/tango/io/compress/ZlibStream.d:(.text._D5tango2io8compress10ZlibStream10ZlibOutput6commitMFZv+0x44): undefined reference to `deflate'
dsss_objs/D/tango.io.compress.ZlibStream.o: In function `_D5tango2io8compress10ZlibStream10ZlibOutput7kill_zsMFZv':
/home/oaalto/D/tango/bin/../import/tango/io/compress/ZlibStream.d:(.text._D5tango2io8compress10ZlibStream10ZlibOutput7kill_zsMFZv+0x16): undefined reference to `deflateEnd'
dsss_objs/D/tango.io.compress.c.zlib.o: In function `_D5tango2io8compress1c4zlib11deflateInitFPS5tango2io8compress1c4zlib8z_streamiZi':
/home/oaalto/D/tango/bin/../import/tango/io/compress/c/zlib.d:(.text._D5tango2io8compress1c4zlib11deflateInitFPS5tango2io8compress1c4zlib8z_streamiZi+0x10): undefined reference to `deflateInit_'
dsss_objs/D/tango.io.compress.c.zlib.o: In function `_D5tango2io8compress1c4zlib11inflateInitFPS5tango2io8compress1c4zlib8z_streamZi':
/home/oaalto/D/tango/bin/../import/tango/io/compress/c/zlib.d:(.text._D5tango2io8compress1c4zlib11inflateInitFPS5tango2io8compress1c4zlib8z_streamZi+0xd): undefined reference to `inflateInit_'
dsss_objs/D/tango.io.compress.c.zlib.o: In function `_D5tango2io8compress1c4zlib12deflateInit2FPS5tango2io8compress1c4zlib8z_streamiiiiiZi':
/home/oaalto/D/tango/bin/../import/tango/io/compress/c/zlib.d:(.text._D5tango2io8compress1c4zlib12deflateInit2FPS5tango2io8compress1c4zlib8z_streamiiiiiZi+0x1c): undefined reference to `deflateInit2_'
dsss_objs/D/tango.io.compress.c.zlib.o: In function `_D5tango2io8compress1c4zlib12inflateInit2FPS5tango2io8compress1c4zlib8z_streamiZi':
/home/oaalto/D/tango/bin/../import/tango/io/compress/c/zlib.d:(.text._D5tango2io8compress1c4zlib12inflateInit2FPS5tango2io8compress1c4zlib8z_streamiZi+0x10): undefined reference to `inflateInit2_'
dsss_objs/D/tango.io.compress.c.zlib.o: In function `_D5tango2io8compress1c4zlib15inflateBackInitFPS5tango2io8compress1c4zlib8z_streamiPhZi':
/home/oaalto/D/tango/bin/../import/tango/io/compress/c/zlib.d:(.text._D5tango2io8compress1c4zlib15inflateBackInitFPS5tango2io8compress1c4zlib8z_streamiPhZi+0x13): undefined reference to `inflateBackInit_'
collect2: ld returned 1 exit status
--- errorlevel 1
Command /home/oaalto/D/dsss/bin/rebuild returned with code 65280, aborting.
Error: Command failed, aborting.

Author Message

Posted: 04/06/09 12:10:44

You need to link to zlib.lib, I think it's maybe available in the dmd+tango bundle.

Posted: 04/06/09 12:16:02

Oh yeah, of course. Sucks a bit that something like that can't be taken care of by tango.