Created
November 16, 2013 15:43
-
-
Save steeve/7501631 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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