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
/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
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.
participants (2)
-
Naeem ahmad
-
Peter Dimov