-
Create a new vs.net 2005 MFC project and solution file in the root of the libtorrent folder where you extracted all of the libtorrent files.
-
Include the files contained in the src folder, excluding the makefiles. NOTE: Only include either file.cpp or file_win.cpp. Read here to determine which file to include: http://www.rasterbar.com/products/libtorrent/docs.html#building-with-other-build-systems
-
Include all .c files in the zlib folder.
-
Add the following Additional Include Header Files:
"libtorrent\include"
"C:\Boost\include\boost-1_33_1"
"libtorrent\zlib"
"libtorrent\include\libtorrent"
-
Add the following Preprocessor Definitions:
WIN32
WIN32_LEAN_AND_MEAN
_WIN32_WINNT=0x0500
BOOST_ALL_NO_LIB
_FILE_OFFSET_BITS=64
BOOST_THREAD_USE_LIB
TORRENT_BUILDING_SHARED
TORRENT_LINKING_SHARED
UNICODE
-
Add C:\Boost\lib to Additional Library Directories
-
Add the following Additional Dependencies:
wsock32.lib
libboost_thread-vc80-mt.lib
libboost_filesystem-vc80-mt.lib
libboost_date_time-vc80-mt.lib
-
Set the Runtime Library to Multi-threaded Debug DLL (/MDd) under the code generation section.