LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-25-2008, 09:16 PM   #1
vikhr
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
http://code.rasterbar.com/libtorrent/wiki/BuildUbuntu


.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 but..got a simple_client.o..but not an executable..how 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..
Help!
 
  


Reply


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 07:14 PM
Compiling libtorrent-0.12 failing on boost lib that does exist agentc0re Slackware 4 01-12-2008 01:36 PM
error in compiling a simple cpp prog.. nick021 Programming 10 05-25-2006 04:30 PM
compiling .h and .cpp files with g++ arnab_be Linux - Newbie 2 03-03-2004 02:23 PM
/lip/cpp error when compiling mep]-[isto Linux - Newbie 1 12-22-2003 06:44 AM


All times are GMT -5. The time now is 02:23 AM.

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