Menu

Testing LibTorrent

Abhijith Gurao

To test the LibTorrent library , follow these steps

1 - Create a Win32 Console application project,Empty. (Visual Studio 2008)

2 - Set Properties of project

a - Set prefrences of project

    ->  C++ General -   Additional Include Directories
            $(BOOST_ROOT)
            $(LIBTORRENT)\include
            $(LIBTORRENT)\include\libtorrent
            $(LIBTORRENT)\zlib

    ->  C++ Preprocessor -  Preprocessor Definitions
            WIN32
            _DEBUG
            _WINDOWS
            _WIN32_WINNT=0x0500
            BOOST_FILESYSTEM_VERSION=2

    ->  Linker General   -   Library Directories
            $(BOOST_ROOT)\stage\lib
            C:\libtorrent\libtorrent\Debug [folder where libtorrent.lib resides]

    ->  Linker Input    -   
            libtorrent.lib
            libboost_system-vc90-mt-gd-1_47.lib

3 - Add a source file from expamples
...\libtorrent-rasterbar-0.15.8\examples

4 - Build project.


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.