Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 05-25-2008, 10:16 PM   #1
LQ Newbie
Registered: Mar 2008
Posts: 4

Rep: Reputation: 0
rasterbar's libtorrent compiling a simple_client.cpp

i am doing a bittorrent client which is my project..using rasterbar libtorrent library.
Followed these instructions for compiling libtorrent with boost and asio libraries

.To start learning i went into "examples" folder in libttorrent source and try to compile simple_client.cpp just using g++ and it didn't work out so.. i tried to steal the deluge-torrent compilation line..when we do "make" in deluge source..

g++ -pthread -fno-strict-aliasing -DNDEBUG -fwrapv -O2 -Wall -fPIC -I/usr/local/include/libtorrent -I/usr/include/python2.5 -I/usr/include/python2.5 -Wno-missing-braces -DHAVE_INCLUDE_LIBTORRENT_ASIO____ASIO_HPP=1 -DHAVE_INCLUDE_LIBTORRENT_ASIO_SSL_STREAM_HPP=1 -DHAVE_INCLUDE_LIBTORRENT_ASIO_IP_TCP_HPP=1 -DHAVE_PTHREAD=1 -DTORRENT_USE_OPENSSL=1 -DHAVE_SSL=1 -DNDEBUG=1 -O2 -c simple_client.cpp

it resulted in couple of warnings a simple_client.o..but not an do i make an executable out of it..? i tried a simple 'ld' on simple_client.o and it result in a hailstorm of link errors..
Is there an easy way to compile the code..i dun know what is going on in the above g++ compilation parameters..


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiled libtorrent but future compiling calls upon older version in repos. granduke Fedora 4 05-13-2008 08:14 PM
Compiling libtorrent-0.12 failing on boost lib that does exist agentc0re Slackware 4 01-12-2008 02:36 PM
error in compiling a simple cpp prog.. nick021 Programming 10 05-25-2006 05:30 PM
compiling .h and .cpp files with g++ arnab_be Linux - Newbie 2 03-03-2004 03:23 PM
/lip/cpp error when compiling mep]-[isto Linux - Newbie 1 12-22-2003 07:44 AM

All times are GMT -5. The time now is 10:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration