<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thx ravi,</blockquote><div>� � � � �� I got to know and it working.<br>
��������� I was not knowing that -l is for searching the lib object -L for lib path or for linking object. <br>Thanks one again <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Sat, 11 Jul 2009 11:03:20 -0400<br>
From: Ravi &lt;<a href="mailto:lists_ravi@lavabit.com">lists_ravi@lavabit.com</a>&gt;<br>
Subject: Re: [Boost-users] boost programmer_option.hpp<br>
To: <a href="mailto:boost-users@lists.boost.org">boost-users@lists.boost.org</a><br>
Message-ID: &lt;<a href="mailto:200907111103.20188.lists_ravi@lavabit.com">200907111103.20188.lists_ravi@lavabit.com</a>&gt;<br>
Content-Type: Text/Plain; �charset=&quot;iso-8859-15&quot;<br>
<br>
On Friday 10 July 2009 01:28:44 Narendra R wrote:<br>
&gt; I tried to link like this<br>
&gt; �g++ -I /home/narendra/boost_instal/boost_1_39_0 test.cpp -o test -L<br>
&gt; /home/narendra/boost_instal/boost_1_39_0/stage/lib<br>
&gt; -l/home/narendra/boost_instal/boost_1_39_0/stage/lib/libboost_program_optio<br>
&gt;ns-gcc41-mt-1_39.a<br>
<br>
The &#39;-l&#39; is not required when explicitly specifying the whole library. So, you<br>
would use one of the following. Replace $INS with<br>
/home/narendra/boost_instal/boost_1_39_0 in the code below.<br>
<br>
Option 1:<br>
<br>
g++ -I$INS test.cpp -o test $INS/libboost_program_options-gcc41-mt-1_39.a<br>
<br>
Option 2:<br>
<br>
g++ -I$INS test.cpp -o test -L $INS/stage/lib -lboost_program_options-gcc41-<br>
mt-1_39<br>
<br>
In option 2, depending on whether you use static linking or dynamic linking,<br>
you may want to set LD_LIBRARY_PATH before running the example.<br>
<br>
Regards,<br>
Ravi<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Sat, 11 Jul 2009 11:08:52 -0400<br>
From: Ravi &lt;<a href="mailto:lists_ravi@lavabit.com">lists_ravi@lavabit.com</a>&gt;<br>
Subject: Re: [Boost-users] Boost Python is slow?<br>
To: <a href="mailto:boost-users@lists.boost.org">boost-users@lists.boost.org</a><br>
Message-ID: &lt;<a href="mailto:200907111108.52321.lists_ravi@lavabit.com">200907111108.52321.lists_ravi@lavabit.com</a>&gt;<br>
Content-Type: Text/Plain; �charset=&quot;iso-8859-1&quot;<br>
<br>
On Thursday 09 July 2009 05:00:47 Tyomich on the AIR wrote:<br>
&gt; And then when I use a simple function which just increments the x member of<br>
&gt; every object, this function takes about 4 seconds to process the whole list<br>
&gt; (1000000 items) of Boost-wrapped objects and less than a second to process<br>
&gt; objects of my own wrapping! How this can be possible? Is Boost.Python much<br>
&gt; more slower than Python itself?<br>
<br>
Boost.Python is a little slower than wrapping directly using Python C-API,<br>
especially in very simple cases like yours. (It is a variant of the<br>
abstraction penalty.) However, it is hard to believe that it is 4x slower.<br>
Would you mind posting complete compilable examples so that we can take a look<br>
at it?<br>
<br>
Regards,<br>
Ravi<br>
<br>
<br>
</blockquote></div><br>