Cory Norris
New member
http://www.boost.org/doc/libs/1_40_0/doc/html/boost_asio/example/http/client/sync_client.cpp
and I'm having no luck at all.
I have tried installing several libraries from synaptic, as well as compiling from source.
What do I need to install, and what command do I have to use to compile it??
Thanks in advance!
I installed libboost-all-dev, which installed a series of libraries.
I tried a whole bunch of commands such as:
c++ -I /usr/local/ webclient.cpp -o webclient /usr/lib/libboost_iostreams.a /usr/lib/libboost_system.a /usr/lib/libboost_regex.a
but everything I try throws errors, and I'm not really sure what to write to compile it.
after hours of reading and trying things the following command compiles it
c++ webclient.cpp -o wc.a /usr/lib/libpthread.a /usr/lib/libboost_system.a /usr/lib/libboost_regex.a /usr/lib/libboost_iostreams.a --static /usr/lib/libc.a
but it still gives the following warning:
warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
know what that means?
and I'm having no luck at all.
I have tried installing several libraries from synaptic, as well as compiling from source.
What do I need to install, and what command do I have to use to compile it??
Thanks in advance!
I installed libboost-all-dev, which installed a series of libraries.
I tried a whole bunch of commands such as:
c++ -I /usr/local/ webclient.cpp -o webclient /usr/lib/libboost_iostreams.a /usr/lib/libboost_system.a /usr/lib/libboost_regex.a
but everything I try throws errors, and I'm not really sure what to write to compile it.
after hours of reading and trying things the following command compiles it
c++ webclient.cpp -o wc.a /usr/lib/libpthread.a /usr/lib/libboost_system.a /usr/lib/libboost_regex.a /usr/lib/libboost_iostreams.a --static /usr/lib/libc.a
but it still gives the following warning:
warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
know what that means?