|
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> Hi Volodya,</DIV> <DIV>Now after</DIV> <DIV>removing -I/usr/local/boost_1_32_0/boost</DIV> <DIV> </DIV> <DIV>I am getting this error<BR><BR></DIV> <DIV> </DIV> <DIV>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 <BR>In file included from /usr/local/boost_1_32_0/boost/config.hpp:44,<BR> from /usr/local/boost_1_32_0/boost/shared_ptr.hpp:17,<BR> 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> from /usr/local/boost_1_32_0/boost/config.hpp:53,<BR> from /usr/local/boost_1_32_0/boost/shared_ptr.hpp:17,<BR> 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> from /usr/local/boost_1_32_0/boost/shared_ptr.hpp:17,<BR> 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> </DIV> <DIV> </DIV> <DIV>my cpp file is </DIV> <DIV> </DIV> <DIV>console_app.cpp<BR></DIV> <DIV> </DIV> <DIV>#include <map><BR>#include <boost/shared_ptr.hpp></DIV> <DIV>using namespace std;</DIV> <DIV>using namespace boost;</DIV> <DIV> </DIV> <DIV>class mytest<BR>{<BR>public:<BR> mytest()<BR> {</DIV> <DIV> }<BR> ~mytest()<BR> {<BR> bool b = true;<BR> }<BR>};</DIV> <DIV> </DIV> <DIV>int main()<BR>{<BR> <BR>map<int,shared_ptr<mytest> > m_map1;<BR>shared_ptr<mytest> p(new mytest);</DIV> <DIV>m_map1[1] = p;</DIV> <DIV> m_map1.clear();<BR> return 0;<BR>}</DIV> <DIV> </DIV> <DIV>Thanks,</DIV> <DIV>Naeem<BR><BR><BR><BR><B><I>Vladimir Prus <ghost_at_[hidden]></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>> Hi Volodya,<BR>> I am only using shared_ptr class<BR>> When I build I get this error message .<BR>><BR>><BR>><BR>><BR>> g++ -c -I/opt/sfw/lib/g++-include -I/usr/local/include<BR>> -I/opt/sfw/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/include<BR>> -I/usr/local/boost_1_32_0/boost <BR><BR>I suggest that you remove the above include path.<BR><BR>> -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, from<BR>> /usr/local/boost_1_32_0/boost/shared_ptr.hpp:17, from console_app.cpp:7:<BR>> /usr/local/boost_1_32_0/boost/config/select_stdlib_config.hpp:20: directory<BR>> `/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><*> To visit your group on the web, go to:<BR>http://groups.yahoo.com/group/jamboost/
><BR><*> To unsubscribe from this group, send an email to:<BR>jamboost-unsubscribe_at_[hidden]<BR><BR><*> 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