Communication error (LNK2019) when including other projects in Visual Studio 2005

I am trying to work with multiple projects in visual studio 2005. I have one project that depends on two others. I included these two projects in the first project solution and installed the dependencies correctly.

I am getting this error when linking a project:

1>server_controller.obj : error LNK2019: unresolved external symbol "public: __thiscall server_communication::TcpServer::TcpServer(class boost::asio::io_service &,struct server_communication::ServerParameters &)" (??0TcpServer@server_communication@@QAE@AAVio_service@asio@boost@@AAUServerParameters@1@@Z) referenced in function "public: __thiscall server_controller::ServerController::ServerController(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (??0ServerController@server_controller@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z)

      

It seems that symbols cannot be found in other projects, even though they are defined in those projects.

+2


a source to share


1 answer


How did you install the dependencies? In C ++, you need to set linker dependencies in Project - Properties - Linker - Additional Libraries. Add the required .lib files here.



About the Dependency Dialog Box: It only affects the build order of projects, but does not resolve linker dependencies.

-1


a source







All Articles