Boost logo

Boost Users :

Subject: Re: [Boost-users] Compiling for Solaris X64
From: Iskandar Prins (iprins_at_[hidden])
Date: 2010-03-22 09:04:12


Im trying to compile the asio example: but when compiling on solaris x64, I get the following error:

I compiled boost using bjam address-model=64

if [ ! -d .deps/ ]; then mkdir -p .deps/; fi
CC -xM1 -library=stlport4 -erroff=nonewline -I ./Lib/boost -I../../sdk/include64 -I../../sdk/examples -DSOLARIS -DSOLARIS64 -DNDEBUG -D_POSIX_PTHREAD_SEMANTICS -KPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -mt -erroff=nonewline -library=stlport4 -xarch=generic -xchip=generic -xO5 -xmodel=medium -xdepend=yes -fsimple=2 -fns=yes -ftrap=%none -xlibmil -xbuiltin=%all -nofstore -Qoption CC -iropt -Qoption CC -xcallee64 -Qoption ube -xcallee=yes -m64 -xarch=generic -xregs=no%frameptr -erroff=nonewline main.cpp | sed -e 's/^.*\.o *:/ main.o:/' > .deps/main.o.d
CC -I ./Lib/boost -I../../sdk/include64 -I../../sdk/examples -DSOLARIS -DSOLARIS64 -DNDEBUG -D_POSIX_PTHREAD_SEMANTICS -KPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -mt -erroff=nonewline -library=stlport4 -xarch=generic -xchip=generic -xO5 -xmodel=medium -xdepend=yes -fsimple=2 -fns=yes -ftrap=%none -xlibmil -xbuiltin=%all -nofstore -Qoption CC -iropt -Qoption CC -xcallee64 -Qoption ube -xcallee=yes -m64 -xarch=generic -xregs=no%frameptr -erroff=nonewline -c main.cpp -o main.o
"./Lib/boost/boost/asio/basic_socket_iostream.hpp", line 113: Error: Type name expected instead of "BOOST_PP_REPEAT_FROM_TO_1".
"./Lib/boost/boost/asio/ip/tcp.hpp", line 98: Where: While specializing "boost::asio::basic_socket_iostream<boost::asio::Protocol, boost::asio::StreamSocketService>".
"./Lib/boost/boost/asio/ip/tcp.hpp", line 98: Where: Specialized in non-template code.
1 Error(s) detected.
gmake: *** [main.o] Error 1

Any idea why this is?

Regards,
Iskandar

-----Original Message-----
From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Vladimir Prus
Sent: Friday, March 19, 2010 16:50
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] Compiling for Solaris X64

Iskandar Prins wrote:

> Hi All,
>
> I need some help with compiling boost for solaris x64. When I try to compile the bjam, I get a x86

x86 build of bjam itself is fine.

> version of bjam and boost, any idea what setting/flag I need to use on bjam?

Use

        bjam address-model=64

- Volodya

_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


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