Skip to content

Instantly share code, notes, and snippets.

@steeve
Created November 16, 2013 15:43
Show Gist options
  • Select an option

  • Save steeve/7501631 to your computer and use it in GitHub Desktop.

Select an option

Save steeve/7501631 to your computer and use it in GitHub Desktop.
$ arm-linux-androideabi-g++ test.cpp -ltorrent-rasterbar -L/usr/local/gcc-4.8.0-arm-linux-androideabi/lib -I/usr/local/gcc-4.8.0-arm-linux-androideabi/include -DTORRENT_USE_OPENSSL -DWITH_SHIPPED_GEOIP_H -DBOOST_ASIO_HASH_MAP_BUCKETS=1021 -DBOOST_EXCEPTION_DISABLE -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_DYN_LINK -DTORRENT_LINKING_SHARED
#include <iostream>
#include <libtorrent/magnet_uri.hpp>
int main(int argc, char **argv) {
libtorrent::error_code ec;
libtorrent::add_torrent_params params;
libtorrent::parse_magnet_uri(argv[1], params, ec);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment