Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6150685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:39:08+00:00 2026-05-23T19:39:08+00:00

I am trying to build the cpp-netlib library from Visual Studio 2010 but get

  • 0

I am trying to build the cpp-netlib library from Visual Studio 2010 but get the following linker error:

error LNK2019: unresolved external symbol “bool __cdecl
boost::network::uri::detail::parse_uri_impl(class
boost::iterator_range,class std::allocator > > &,struct
boost::network::uri::detail::uri_parts_default_base &,struct
boost::network::tags::default_string)”
(?parse_uri_impl@detail@uri@network@boost@@YA_NAAV?$iterator_range@V?$_String_const_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@4@AAUuri_parts_default_base@1234@Udefault_string@tags@34@@Z)
referenced in function “bool __cdecl
boost::network::uri::detail::parse_uri,class
std::allocator >,struct
boost::network::http::tags::http_default_8bit_tcp_resolve>(class
std::basic_string,class
std::allocator > &,struct
boost::network::uri::detail::uri_parts &)”
(??$parse_uri@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@Uhttp_default_8bit_tcp_resolve@tags@http@network@boost@@@detail@uri@network@boost@@YA_NAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAU?$uri_parts@Uhttp_default_8bit_tcp_resolve@tags@http@network@boost@@@0123@@Z)

A little bit of digging turned up that this could be related to the version of Boost I’m using (1.46.1) but I have tried compiling against both 1.47.0 and 1.45.0 and get the same error.

What is required to get this library to compile?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T19:39:09+00:00Added an answer on May 23, 2026 at 7:39 pm

    After a lot of searching I found this post and this one from the creator of the library, mentioning:

    1. An option to turn off the required external library to be linked with a macro (BOOST_NETWORK_NO_LIB). With this macro defined before
      any cpp-netlib headers are included (or on the command line) the
      functions that were made extern or just free functions at namespace
      level are marked ‘inline’ and have their definitions pulled in
      accordingly in each translation unit. This addresses Jeff Garland’s
      and others’ concern of the need for an external library when using
      cpp-netlib when it’s always been header-only until 0.9. I’m still
      wrestling with the thought of making the header-only behavior a
      default, but I’m not married to the “external library as default”
      decision either.

    I am able to compile if I add that macro definition before my cpp-netlib headers like so:

    #define BOOST_NETWORK_NO_LIB
    
    #include <boost/network/protocol/http/client.hpp>
    

    In the second post I found there is also mention of “You need to build/link against the uri library” which sounds like it might be a better solution.

    Unfortunately my knowledge of c++ and boost isn’t the best so I just went with what worked.

    Any better approaches are welcome, though all I really wanted to do was compile the library so I can evaluate it for real use, so I’m happy right now.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build the boost examples. I get the following error: Access is
I'm trying to build gtest on Visual Studio 2010. After converting the solution file,
I'm trying to build the following block of code in a 1-file .cpp file:
I'm trying to build the Visual Studio project for a kinect demo thing, rgbddemo
I am getting the following error when trying to build my app in Qt
I'm trying to build a grammar with the following: NUMERIC: INTEGER | FLOAT |
I'm trying to build the qtestlib/tutorial1 example , but the testqstring.moc file isn't being
I'm trying to build a new .NET C++ project from scratch. I am planning
Trying to build a legacy code in VS2005 and get errors in VC header
I'm trying to hook into the OnSysCommand function but I'm getting a confusing error.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.