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

cvisual-studio-2008

I have created a application for using the libtorrent. In that I am using the boost library. I tried the sample example given in http://www.rasterbar.com/products/libtorrent/examples.html

& tried it in my MSVC 9.0 but I am getting this error

1>LINK : fatal error LNK1104: cannot open file 'libboost_system-vc90-mt-gd-1_36.lib'

how to solve this problem please help me.

Best Answer

Right click the project, and choose "Properties" --> "Linker" --> "General" --> "Additional Library Directories", add your path of libboost_system-vc90-mt-gd-1_36.lib in it. "Properties" --> "Linker" --> "Input" --> "Additional Dependencies", add libboost_system-vc90-mt-gd-1_36.lib in it.

I am using MSVC 10.0, but I think it is the same.