Boost.MultiIndex Solaris compatibility

Hello,
boost/multi_index/indexed_by.hpp does not compile on my SunOS 5.10
system.
CC version:
CC: Sun C++ 5.10 SunOS_i386 2009/06/03
Compiling this test program using boost 1.42:
#include

Andre.TERROUX@sungard.com escribió:
Hello,
boost/multi_index/indexed_by.hpp does not compile on my SunOS 5.10 system.
CC version:
CC: Sun C++ 5.10 SunOS_i386 2009/06/03
Compiling this test program using boost 1.42:
#include
main()
{
}
Reports the following errors:
"/sr/gldev/shrdlibs/boostlibs/1.42.0/boost/multi_index/indexed_by.hpp", line 56: Error: Type name expected instead of "BOOST_PP_ENUM_1".
"/sr/gldev/shrdlibs/boostlibs/1.42.0/boost/multi_index/indexed_by.hpp", line 58: Error: Expected "class" or "typename" before "BOOST_MULTI_INDEX_INDEXED_BY_TEMPLATE_PARM" .
"/sr/gldev/shrdlibs/boostlibs/1.42.0/boost/multi_index/indexed_by.hpp", line 58: Error: Type name expected instead of "T".
3 Error(s) detected.
Is Boost.MultiIndex Solaris compatible? Am I missing something?
I read the following about multi_index on boost.org:
No problems have been detected with this platform. Last tested for compiler version Sun C++ 5.10 (Sun Studio 12 Update 1). The option |-library=stlport4| was used to replace the default standard library with STLport.
I tried with the –library=stlport4 but same errors.
Boost.MultiIndex tests are passing for SunOS 5.10 as shown in http://www.boost.org/development/tests/trunk/developer/multi_index.html The particular settings of the compiler used for testing are described at http://www.boost.org/development/tests/trunk/Sandia-sun.html Do you detect any significant difference? Another possibility (which I deem highly unlikely) is that boost/multi_index/indexed_by.hpp is missing some include. To rule this out you might want to compile some of the examples at libs/multi_index/example: my hunch is that you'll get the same problem (or equivalent) as above. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

Boost.MultiIndex tests are passing for SunOS 5.10 as shown in
http://www.boost.org/development/tests/trunk/developer/multi_index.html
The particular settings of the compiler used for testing are described at
http://www.boost.org/development/tests/trunk/Sandia-sun.html
Do you detect any significant difference?
Another possibility (which I deem highly unlikely) is that boost/multi_index/indexed_by.hpp is missing some include. To rule this out you might want to compile some of the examples at libs/multi_index/example: my hunch is that you'll get the same problem (or equivalent) as above.
Thanks Joaquín. Problem solved. The issue came from "Windows line endings". Installing the "Unix line endings" library fixed the problem. Again, thank you for your help. -Andre
participants (2)
-
Andre.TERROUX@sungard.com
-
joaquin@tid.es