[iostreams/filter] problem whilst linking
Hi,
I have the following code (more or less ...)
<snip>
#include
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
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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Christian Meesters
-
Steven Watanabe