Problem of compilation with server


#1

I use Ubuntu 10.10 and i try to compile svn version of frogatto (server)

svn info | grep Revision Revision: 3733

apt-cache policy libboost-iostreams1.42-dev libboost-iostreams1.42-dev: Installed: 1.42.0-3ubuntu1 Candidate: 1.42.0-3ubuntu1 Version table: *** 1.42.0-3ubuntu1 0 500 http://ubuntu-archive.mirrors.proxad.net/ubuntu/ maverick/main i386 Packages 100 /var/lib/dpkg/status

make server
ccache g++ -fno-inline-functions -g -O2 -fno-inline-functions -L/sw/lib -D_GNU_SOURCE=1 -D_REENTRANT -Wnon-virtual-dtor -Wreturn-type -L/usr/lib `sdl-config --libs` -lSDLmain -lSDL -lGL -lGLU -lSDL_image -lSDL_ttf -lSDL_mixer -lboost_regex-mt -lboost_system-mt -lboost_thread-mt -lboost_iostreams-mt -fthreadsafe-statics server.o simple_wml.o -o server
simple_wml.o: In function `boost::iostreams::detail::zlib_decompressor_impl<std::allocator<char> >::filter(char const*&, char const*, char*&, char*, bool)':
simple_wml.cpp:(.text._ZN5boost9iostreams6detail22zlib_decompressor_implISaIcEE6filterERPKcS6_RPcS8_b[boost::iostreams::detail::zlib_decompressor_impl<std::allocator<char> >::filter(char const*&, char const*, char*&, char*, bool)]+0x43): undefined reference to `boost::iostreams::detail::zlib_base::inflate(int)'
simple_wml.o: In function `boost::iostreams::detail::zlib_compressor_impl<std::allocator<char> >::filter(char const*&, char const*, char*&, char*, bool)':
simple_wml.cpp:(.text._ZN5boost9iostreams6detail20zlib_compressor_implISaIcEE6filterERPKcS6_RPcS8_b[boost::iostreams::detail::zlib_compressor_impl<std::allocator<char> >::filter(char const*&, char const*, char*&, char*, bool)]+0x57): undefined reference to `boost::iostreams::detail::zlib_base::deflate(int)'
collect2: ld returned 1 exit status
make: *** [server] Error 1

What’s the problem ? :slight_smile:


#2

Maybe linking against zlib as well (adding -lz switch)…


#3

ok thank you… It works now :slight_smile: