Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-04-11 12:51:27


Naeem ahmad wrote:
> Hi all,
>
> I am getting this error when try to build on solaris, using g++, I am
> only using
>
> Class shared_ptr
>
>
>
>
>
> 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

Check your line endings. If you moved Boost from a Windows machine to the
Solaris box, the lines will have CR/LF at the end, not LF.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net