C++ – fatal error LNK1104: cannot open file ‘libboost_system-vc90-mt-gd-1_43.lib’

boostcvisual studio

Made a new project, added main.cpp and wrote the code at this URL:

http://www.boost.org/doc/libs/1_43_0/doc/html/boost_asio/example/echo/async_tcp_echo_server.cpp

Also, added the appropriate include path.

What's next?!?!! It seems like a darn mystery to build a boost code!

Been digging on it for more than 10 hours.

Can anyone give a straightforward answer on how to build the boost library from the code under windows, VC9?

Best Answer

You need to use bjam. It is responsible for creating the libraries that your application will use. Once you use bjam, you are going to need to instruct your project to include the lib file. You do this by going into the project's properties -> Configuration Properties -> Linker -> General. Add the directory which created the lib file to Additional Library Directories. You should be capable of correctly linking after that. I believe that this link describes the steps better than I could attempt in a post

Related Topic