Loki wont compile under Sun Studio
http://sourceforge.net/projects/loki-lib/
I haven't had a trouble compiling software using the Loki Library in Microsoft Visual Studio 2005 in Windows XP and gcc using cygwin and solaris. I haven't been able to get it to compile using the CC compile from Sun Studio 11.
"/export/home/root/Programming/loki-0.1.5/include/loki/SmartPtr.h", line 1490: Error: Partial specialization parameter OP is not used in the arguments.
"/export/home/root/Programming/loki-0.1.5/include/loki/SmartPtr.h", line 1490: Error: Partial specialization parameter KP is not used in the arguments.
"/export/home/root/Programming/loki-0.1.5/include/loki/SmartPtr.h", line 1490: Error: Partial specialization parameter SP is not used in the arguments.
"/export/home/root/Programming/loki-0.1.5/include/loki/SmartPtr.h", line 1490: Error: Partial specialization parameter CNP is not used in the arguments.
4 Error(s) detected.
"/export/home/root/Programming/loki-0.1.5/include/loki/SmartPtr.h", line 1490: Error: Partial specialization parameter OP is not used in the arguments.
"/export/home/root/Programming/loki-0.1.5/include/loki/SmartPtr.h", line 1490: Error: Partial specialization parameter KP is not used in the arguments.
"/export/home/root/Programming/loki-0.1.5/include/loki/SmartPtr.h", line 1490: Error: Partial specialization parameter SP is not used in the arguments.
"/export/home/root/Programming/loki-0.1.5/include/loki/SmartPtr.h", line 1490: Error: Partial specialization parameter CNP is not used in the arguments.
"/export/home/root/Programming/loki-0.1.5/include/loki/StrongPtr.h", line 1455: Error: Partial specialization parameter KP is not used in the arguments.
"/export/home/root/Programming/loki-0.1.5/include/loki/StrongPtr.h", line 1455: Error: Partial specialization parameter RP is not used in the arguments.
"/export/home/root/Programming/loki-0.1.5/include/loki/StrongPtr.h", line 1455: Error: Partial specialization parameter DP is not used in the arguments.
"/export/home/root/Programming/loki-0.1.5/include/loki/StrongPtr.h", line 1455: Error: Partial specialization parameter CNP is not used in the arguments.
8 Error(s) detected.
"/export/home/root/Programming/loki-0.1.5/include/loki/SmartPtr.h", line 1490: Error: Partial specialization parameter OP is not used in the arguments.
"/export/home/root/Programming/loki-0.1.5/include/loki/SmartPtr.h", line 1490: Error: Partial specialization parameter KP is not used in the arguments.
"/export/home/root/Programming/loki-0.1.5/include/loki/SmartPtr.h", line 1490: Error: Partial specialization parameter SP is not used in the arguments.
"/export/home/root/Programming/loki-0.1.5/include/loki/SmartPtr.h", line 1490: Error: Partial specialization parameter CNP is not used in the arguments.
The Loki developers think it might be a problem with the compiler (since there isn't trouble with MSVC and gcc).
The code in question is below
template
<
typename T,
template <class> class OP,
class CP,
template <class> class KP,
template <class> class SP,
template <class> class CNP,
typename U
>
inline bool operator>=(const SmartPtr<T, OP, CP, KP, SP, CNP >& lhs,
U* rhs)
{ return !(lhs < rhs); }
template
<
typename T,
template <class> class OP,
class CP,
template <class> class KP,
template <class> class SP,
template <class> class CNP,
typename U
>
inline bool operator>=(U* lhs,
const SmartPtr<T, OP, CP, KP, SP, CNP >& rhs)
{ return !(lhs < rhs); }
I know this is kind of vague. Has anyone else tried to use Loki with Sun Studio?
Message was edited by:
nivenfres

