Boost C++ Libraries: Ticket #2897: asio is not header-only on MSVC https://svn.boost.org/trac10/ticket/2897 <p> 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: </p> <p> LINK : fatal error LNK1104: cannot open file 'libboost_system-vc90-mt-gd-1_38.lib' </p> <p> The test program I used: </p> <pre class="wiki">#include &lt;iostream&gt; #include &lt;string&gt; #include &lt;boost/asio.hpp&gt; using boost::asio::ip::tcp; int main() { return 0; } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2897 Trac 1.4.3 Daniel James Sun, 29 Mar 2009 06:51:05 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2897#comment:1 https://svn.boost.org/trac10/ticket/2897#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed in <a class="changeset" href="https://svn.boost.org/trac10/changeset/52048" title="Boost.ASIO isn't a header only library. It requires that you link ...">[52048]</a>,<a class="changeset" href="https://svn.boost.org/trac10/changeset/52049" title="Merge from beta up to 52048. Unmerged until 1.39: r51130,r51725 ">[52049]</a> </p> Ticket dustin@… Sun, 29 Mar 2009 23:09:23 GMT status changed; resolution deleted https://svn.boost.org/trac10/ticket/2897#comment:2 https://svn.boost.org/trac10/ticket/2897#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> </ul> <p> You should also change 'autolink' to true then, since boost.system is autolinking. The only reason I got the error was because I didn't have any of the libraries compiled. </p> Ticket anonymous Mon, 29 Nov 2010 05:02:41 GMT <link>https://svn.boost.org/trac10/ticket/2897#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2897#comment:3</guid> <description> <p> Is this still an issue? I think this is a documented requirement of Boost.Asio even in other platforms. Should this be marked <code>wontfix</code>? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Sat, 11 Dec 2010 14:47:26 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/2897#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2897#comment:4</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/67172" title="More flexible link description in library list. So that Asio can be ...">[67172]</a>) More flexible link description in library list. </p> <p> So that Asio can be more accurately described. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2897" title="#2897: Bugs: asio is not header-only on MSVC (closed: fixed)">#2897</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>chris_kohlhoff</dc:creator> <pubDate>Mon, 06 Jun 2011 02:04:59 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2897#comment:5 https://svn.boost.org/trac10/ticket/2897#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Closing as website now appears to contains this information. </p> Ticket anonymous Tue, 13 Sep 2011 12:50:18 GMT <link>https://svn.boost.org/trac10/ticket/2897#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2897#comment:6</guid> <description> <p> Hi, I have included the Boost libraries in VS2008 project, and used the following, #include &lt;asio.hpp&gt; 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. </p> <p> Replying to <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2897" title="#2897: Bugs: asio is not header-only on MSVC (closed: fixed)">dustin@…</a>: </p> <blockquote class="citation"> <p> 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: </p> <p> LINK : fatal error LNK1104: cannot open file 'libboost_system-vc90-mt-gd-1_38.lib' </p> <p> The test program I used: </p> <pre class="wiki">#include &lt;iostream&gt; #include &lt;string&gt; #include &lt;boost/asio.hpp&gt; using boost::asio::ip::tcp; int main() { return 0; } </pre></blockquote> </description> <category>Ticket</category> </item> </channel> </rss>