Including boost example in a larger program

I would like to try out the boost Asio HTTP Server 1.0 example ( http://think-async.com/Asio/boost_asio_1_10_6/doc/html/boost_asio/examples/cpp03_examples.html ) in a larger program I am working with in Visual Studio. I added a folder with the example files to the project and added it as an additional include. How would I best go about initiating it?

I used the body of main from main.cpp and its includes to try and start it but I end up with:

error LNK2019: unresolved external symbol "public: __cdecl http::server::server::server(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0server@0http@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@00@Z) referenced in function "protected: int __cdecl CScriptBind_Telegram::StartServer(struct IFunctionHandler *)" (?StartServer@CScriptBind_Telegram@@IEAAHPEAUIFunctionHandler@@@Z)
Last edited on
Topic archived. No new replies allowed.