Boost logo

Boost-Build :

From: syed ahmad (naeem_fast_at_[hidden])
Date: 2005-04-11 09:30:24


 Hi Volodya,
Now after
removing -I/usr/local/boost_1_32_0/boost

I am getting this error

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 console_app.cpp
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 /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: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

my cpp file is

console_app.cpp

#include <map>
#include <boost/shared_ptr.hpp>
using namespace std;
using namespace boost;

class mytest
{
public:
mytest()
{
}
~mytest()
{
bool b = true;
}
};

int main()
{

map<int,shared_ptr<mytest> > m_map1;
shared_ptr<mytest> p(new mytest);
m_map1[1] = p;
m_map1.clear();
return 0;
}

Thanks,
Naeem

Vladimir Prus <ghost_at_[hidden]> wrote:

On Monday 11 April 2005 17:42, syed ahmad wrote:
> 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 suggest that you remove the above include path.

> -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

This is caused by the fact that there's /usr/local/boost_1_32_0/boost/utility
directory. You need to remove -I/usr/local/boost_1_32_0/boost

- 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-1785759575-1113229824=:52902 Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
<DIV>&nbsp;Hi Volodya,</DIV>
<DIV>Now after</DIV>
<DIV>removing -I/usr/local/boost_1_32_0/boost</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am getting this error<BR><BR></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 console_app.cpp <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 /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: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>&nbsp;</DIV>
<DIV>my cpp file is </DIV>
<DIV>&nbsp;</DIV>
<DIV>console_app.cpp<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>#include &lt;map&gt;<BR>#include &lt;boost/shared_ptr.hpp&gt;</DIV>
<DIV>using namespace std;</DIV>
<DIV>using namespace boost;</DIV>
<DIV>&nbsp;</DIV>
<DIV>class mytest<BR>{<BR>public:<BR>&nbsp;mytest()<BR>&nbsp;{</DIV>
<DIV>&nbsp;}<BR>&nbsp;~mytest()<BR>&nbsp;{<BR>&nbsp;&nbsp;bool b = true;<BR>&nbsp;}<BR>};</DIV>
<DIV>&nbsp;</DIV>
<DIV>int main()<BR>{<BR>&nbsp;&nbsp;&nbsp; <BR>map&lt;int,shared_ptr&lt;mytest&gt; &gt; m_map1;<BR>shared_ptr&lt;mytest&gt; p(new mytest);</DIV>
<DIV>m_map1[1] = p;</DIV>
<DIV>&nbsp; m_map1.clear();<BR>&nbsp;return 0;<BR>}</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>Naeem<BR><BR><BR><BR><B><I>Vladimir Prus &lt;ghost_at_[hidden]&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR>On Monday 11 April 2005 17:42, syed ahmad wrote:<BR>&gt; Hi Volodya,<BR>&gt; I am only using shared_ptr class<BR>&gt; When I build I get this error message .<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; g++ -c -I/opt/sfw/lib/g++-include -I/usr/local/include<BR>&gt; -I/opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/include<BR>&gt; -I/usr/local/boost_1_32_0/boost <BR><BR>I suggest that you remove the above include path.<BR><BR>&gt; -I/usr/local/boost_1_32_0 console_app.cpp <BR>&gt; In file included from /usr/local/boost_1_32_0/boost/config.hpp:40, from<BR>&gt; /usr/local/boost_1_32_0/boost/shared_ptr.hpp:17, from console_app.cpp:7:<BR>&gt; /usr/local/boost_1_32_0/boost/config/select_stdlib_config.hpp:20: directory<BR>&gt; `/usr/local/boost_1_32_0/boost/utility' specified in #include In file<BR><BR>This is caused by the fact that there's /usr/local/boost_1_32_0/boost/utility
<BR>directory. You need to remove -I/usr/local/boost_1_32_0/boost<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><p>Send instant messages to your online friends http://uk.messenger.yahoo.com  --0-1785759575-1113229824=:52902-- 

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