Boost logo

Boost-Build :

From: syed ahmad (naeem_fast_at_[hidden])
Date: 2005-04-11 08:42:23


Hi Volodya,
I am only using shared_ptr class
When I build I get this error message .

g++ -c -I/opt/sfw/lib/g++-include -I/usr/local/include -I/opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/include -I/usr/local/boost_1_32_0/boost -I/usr/local/boost_1_32_0 console_app.cpp
In file included from /usr/local/boost_1_32_0/boost/config.hpp:40,
from /usr/local/boost_1_32_0/boost/shared_ptr.hpp:17,
from console_app.cpp:7:
/usr/local/boost_1_32_0/boost/config/select_stdlib_config.hpp:20: directory `/usr/local/boost_1_32_0/boost/utility' specified in #include
In file included from /usr/local/boost_1_32_0/boost/config.hpp:44,
from /usr/local/boost_1_32_0/boost/shared_ptr.hpp:17,
from console_app.cpp:7:
/usr/local/boost_1_32_0/boost/config/stdlib/sgi.hpp:29: Invalid token in expression
In file included from /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/../../../../include/g++-3/string:6,
from /usr/local/boost_1_32_0/boost/config/stdlib/sgi.hpp:84,
from /usr/local/boost_1_32_0/boost/config.hpp:44,
from /usr/local/boost_1_32_0/boost/shared_ptr.hpp:17,
from console_app.cpp:7:
/opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/../../../../include/g++-3/std/bastring.h:44: directory `/usr/local/boost_1_32_0/boost/iterator' specified in #include
In file included from /usr/local/boost_1_32_0/boost/config/platform/solaris.hpp:17,
from /usr/local/boost_1_32_0/boost/config.hpp:53,
from /usr/local/boost_1_32_0/boost/shared_ptr.hpp:17,
from console_app.cpp:7:
/usr/local/boost_1_32_0/boost/config/posix_features.hpp:51: Invalid token in expression
/usr/local/boost_1_32_0/boost/config/posix_features.hpp:67: Invalid token in expression
In file included from /usr/local/boost_1_32_0/boost/config.hpp:57,
from /usr/local/boost_1_32_0/boost/shared_ptr.hpp:17,
from console_app.cpp:7:
/usr/local/boost_1_32_0/boost/config/suffix.hpp:34: Invalid token in expression
/usr/local/boost_1_32_0/boost/config/suffix.hpp:61: Invalid token in expression
/usr/local/boost_1_32_0/boost/config/suffix.hpp:70: Invalid token in expression
/usr/local/boost_1_32_0/boost/config/suffix.hpp:97: Invalid token in expression
/usr/local/boost_1_32_0/boost/config/suffix.hpp:105: Invalid token in expression
/usr/local/boost_1_32_0/boost/config/suffix.hpp:113: Invalid token in expression
/usr/local/boost_1_32_0/boost/config/suffix.hpp:121: Invalid token in expression
/usr/local/boost_1_32_0/boost/config/suffix.hpp:130: Invalid token in expression
/usr/local/boost_1_32_0/boost/config/suffix.hpp:140: Invalid token in expression
/usr/local/boost_1_32_0/boost/config/suffix.hpp:200: Invalid token in expression
/usr/local/boost_1_32_0/boost/config/suffix.hpp:211: Invalid token in expression
/usr/local/boost_1_32_0/boost/config/suffix.hpp:226: Invalid token in expression
In file included from console_app.cpp:7:
/usr/local/boost_1_32_0/boost/shared_ptr.hpp:30: directory `/usr/local/boost_1_32_0/boost/algorithm' specified in #include
In file included from console_app.cpp:7:
/usr/local/boost_1_32_0/boost/shared_ptr.hpp:264: Invalid token in expression
/usr/local/boost_1_32_0/boost/shared_ptr.hpp:271: Invalid token in expression
make: *** [console_app.o] Error 1

Thanks,
Naeem

Vladimir Prus <ghost_at_[hidden]> wrote:
On Monday 11 April 2005 12:16, syed ahmad wrote:
> Hi Volodya,
> Thank for response,
> I would like to use shared_ptr class, and later filesystem library.

The first can be used without building. The second must be built.

> Can I use boost without building it, on solaris 8 with g++ 2.95.3.
> I need to know where to copy boost library and

You just need to add include path tot the $boost_root/boost directory. You can
move that directly to a system location you like, for
example /usr/local/include/boost

> I am specifying the path also in make file
>
> QUALITAINC = -I/usr/local/boost_1_32_0\

This should be OK.

> -I/usr/local/boost_1_32_0/boost

This is not necessary.

> The source code is this
>
> #include
> #include
> using namespace std;
> using namespace boost;
.....
>
> map > m_map1;
> shared_ptr p(new mytest);

Should work without building anything.

- Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2
Yahoo! Groups Links
Send instant messages to your online friends http://uk.messenger.yahoo.com  --0-822363998-1113226943=:9671 Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
<DIV>Hi&nbsp;Volodya,</DIV>
<DIV>I am only using shared_ptr class</DIV>
<DIV>When I build I get this error message .</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>g++&nbsp; -c&nbsp; -I/opt/sfw/lib/g++-include -I/usr/local/include -I/opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/include -I/usr/local/boost_1_32_0/boost -I/usr/local/boost_1_32_0 console_app.cpp <BR>In file included from /usr/local/boost_1_32_0/boost/config.hpp:40,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/local/boost_1_32_0/boost/shared_ptr.hpp:17,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from console_app.cpp:7:<BR>/usr/local/boost_1_32_0/boost/config/select_stdlib_config.hpp:20: directory `/usr/local/boost_1_32_0/boost/utility' specified in #include<BR>In file included from /usr/local/boost_1_32_0/boost/config.hpp:44,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from
/usr/local/boost_1_32_0/boost/shared_ptr.hpp:17,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from console_app.cpp:7:<BR>/usr/local/boost_1_32_0/boost/config/stdlib/sgi.hpp:29: Invalid token in expression<BR>In file included from /opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/../../../../include/g++-3/string:6,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/local/boost_1_32_0/boost/config/stdlib/sgi.hpp:84,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/local/boost_1_32_0/boost/config.hpp:44,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/local/boost_1_32_0/boost/shared_ptr.hpp:17,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from
console_app.cpp:7:<BR>/opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/../../../../include/g++-3/std/bastring.h:44: directory `/usr/local/boost_1_32_0/boost/iterator' specified in #include<BR>In file included from /usr/local/boost_1_32_0/boost/config/platform/solaris.hpp:17,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/local/boost_1_32_0/boost/config.hpp:53,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/local/boost_1_32_0/boost/shared_ptr.hpp:17,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from console_app.cpp:7:<BR>/usr/local/boost_1_32_0/boost/config/posix_features.hpp:51: Invalid token in expression<BR>/usr/local/boost_1_32_0/boost/config/posix_features.hpp:67: Invalid token in expression<BR>In file included from
/usr/local/boost_1_32_0/boost/config.hpp:57,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /usr/local/boost_1_32_0/boost/shared_ptr.hpp:17,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from console_app.cpp:7:<BR>/usr/local/boost_1_32_0/boost/config/suffix.hpp:34: Invalid token in expression<BR>/usr/local/boost_1_32_0/boost/config/suffix.hpp:61: Invalid token in expression<BR>/usr/local/boost_1_32_0/boost/config/suffix.hpp:70: Invalid token in expression<BR>/usr/local/boost_1_32_0/boost/config/suffix.hpp:97: Invalid token in expression<BR>/usr/local/boost_1_32_0/boost/config/suffix.hpp:105: Invalid token in expression<BR>/usr/local/boost_1_32_0/boost/config/suffix.hpp:113: Invalid token in expression<BR>/usr/local/boost_1_32_0/boost/config/suffix.hpp:121: Invalid token in expression<BR>/usr/local/boost_1_32_0/boost/config/suffix.hpp:130: Invalid token in
expression<BR>/usr/local/boost_1_32_0/boost/config/suffix.hpp:140: Invalid token in expression<BR>/usr/local/boost_1_32_0/boost/config/suffix.hpp:200: Invalid token in expression<BR>/usr/local/boost_1_32_0/boost/config/suffix.hpp:211: Invalid token in expression<BR>/usr/local/boost_1_32_0/boost/config/suffix.hpp:226: Invalid token in expression<BR>In file included from console_app.cpp:7:<BR>/usr/local/boost_1_32_0/boost/shared_ptr.hpp:30: directory `/usr/local/boost_1_32_0/boost/algorithm' specified in #include<BR>In file included from console_app.cpp:7:<BR>/usr/local/boost_1_32_0/boost/shared_ptr.hpp:264: Invalid token in expression<BR>/usr/local/boost_1_32_0/boost/shared_ptr.hpp:271: Invalid token in expression<BR>make: *** [console_app.o] Error 1</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>Naeem</DIV>
<DIV><BR><BR><B><I>Vladimir Prus &lt;ghost_at_[hidden]&gt;</I></B> wrote:
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR>On Monday 11 April 2005 12:16, syed ahmad wrote:<BR>&gt; Hi Volodya,<BR>&gt; Thank for response,<BR>&gt; I would like to use shared_ptr class, and later filesystem library.<BR><BR>The first can be used without building. The second must be built.<BR><BR>&gt; Can I use boost without building it, on solaris 8 with g++ 2.95.3.<BR>&gt; I need to know where to copy boost library and<BR><BR>You just need to add include path tot the $boost_root/boost directory. You can <BR>move that directly to a system location you like, for <BR>example /usr/local/include/boost<BR><BR>&gt; I am specifying the path also in make file<BR>&gt;<BR>&gt; QUALITAINC = -I/usr/local/boost_1_32_0\<BR><BR>This should be OK.<BR><BR>&gt; -I/usr/local/boost_1_32_0/boost<BR><BR>This is not necessary.<BR><BR>&gt; The source code is this<BR>&gt;<BR>&gt; #include <MAP><BR>&gt; #include <SHARED_PTR.HPP><BR>&gt; using
namespace std;<BR>&gt; using namespace boost;<BR>.....<BR>&gt;<BR>&gt; map<INT,SHARED_PTR<MYTEST> &gt; m_map1;<BR>&gt; shared_ptr<MYTEST> p(new mytest);<BR><BR>Should work without building anything.<BR><BR>- Volodya<BR><BR>-- <BR>Vladimir Prus<BR>http://vladimir_prus.blogspot.com>Boost.Build V2: http://boost.org/boost-build2><BR><BR><BR>Yahoo! Groups Links<BR><BR>&lt;*&gt; To visit your group on the web, go to:<BR>http://groups.yahoo.com/group/jamboost/><BR>&lt;*&gt; To unsubscribe from this group, send an email to:<BR>jamboost-unsubscribe_at_[hidden]<BR><BR>&lt;*&gt; Your use of Yahoo! Groups is subject to:<BR>http://docs.yahoo.com/info/terms/><BR><BR><BR><BR></BLOCKQUOTE></DIV></MAP><p>Send instant messages to your online friends http://uk.messenger.yahoo.com  --0-822363998-1113226943=:9671-- 

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk