Re: [Boost-bugs] [Boost C++ Libraries] #2897: asio is not header-only on MSVC

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2897: asio is not header-only on MSVC
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-09-13 12:50:18


#2897: asio is not header-only on MSVC
-----------------------------------------+----------------------------------
  Reporter: dustin@… | Owner: chris_kohlhoff
      Type: Bugs | Status: closed
 Milestone: Boost 1.39.0 | Component: asio
   Version: Boost 1.38.0 | Severity: Problem
Resolution: fixed | Keywords:
-----------------------------------------+----------------------------------

Comment (by anonymous):

 Hi, I have included the Boost libraries in VS2008 project, and used the
 following,
 #include <asio.hpp>
 but the it showed error as fatal error C1083: Cannot open include file:
 'boost/asio/basic_datagram_socket.hpp': No such file or directory. even
 though the path is a valid path and all .hpp files are present.


 Replying to [ticket:2897 dustin@…]:
> The boost documentation claims that asio is a header-only library.
 However, it seems like it may have non-header-only dependencies. If one
 even includes the asio header, on Visual Studio 2008 Express edition you
 get the following linker error:
>
> LINK : fatal error LNK1104: cannot open file 'libboost_system-vc90-mt-
 gd-1_38.lib'
>
> The test program I used:
>
>
> {{{
> #include <iostream>
> #include <string>
> #include <boost/asio.hpp>
>
> using boost::asio::ip::tcp;
>
> int main()
> {
> return 0;
> }
> }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2897#comment:6>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC