Boost logo

Boost Users :

Subject: Re: [Boost-users] [iostreams/filter] problem whilst linking
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-06-01 12:20:48


AMDG

Christian Meesters wrote:
> I have the following code (more or less ...)
> <snip>
> gcc -o program -static trunk/src/file1.cpp trunk/src/file2.cpp ...
> -lboost_program_options -lboost_iostreams
>
> I get
>
> /usr/local/lib/libboost_iostreams.a(zlib.o): In function
> `boost::iostreams::detail::zlib_base::after(char const*&, char*&,
> bool)':
> zlib.cpp:(.text+0x120): undefined reference to `crc32'
> <snip>
>
> Any idea what's wrong? What I need to change?
>

Add -lz

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net