Boost logo

Boost Users :

Subject: Re: [Boost-users] [iostreams/filter] problem whilst linking
From: Christian Meesters (meesters_at_[hidden])
Date: 2010-06-02 03:42:24


Thanks, Steven! I really did not think of linking the zlib
explicitly ...

Regards,
Christian

On Tue, 2010-06-01 at 09:20 -0700, Steven Watanabe wrote:
> 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 mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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